View the original community article here
Last tested: Aug 23, 2019
To understand how relative URLs in the link/html parameter are handled, it is helpful to understand how relative URLs work in browsers in general. This stackoverflow post has a detailed description of the different types of relative URLs and how they work, but the basic rules are as follows:
- If there are two leading slashes, it is scheme relative
- If there is one leading slash, it is root relative
- If there is no leading slash, but there is a colon, assume it is an absolute URI
- If there is no leading slash, and no colon, it is location relative
Examples: Suppose that you are navigating from https://example.looker.com/explore/model1/explore1?qid=[query hash].
- Scheme relative:
url: "//foo"
will navigate tohttps://foo
- Root relative:
url: "/foo"
will navigate tohttps://example.looker.com/foo
- Absolute URI:
url: "fo:o"
will navigate tofo:o
- Location relative:
url: "foo"
will navigate tohttps://example.looker.com/explore/model1/foo
This content is subject to limited support.