Is there a Liquid parameter for the current Looker instance hostname URL?

Knowledge Drop

Last tested: Jan 29, 2020
 

There is not. This is a feature request: Grab current page URL with liquid.

Workaround

If you have several different instances but just wants to use a single liquid variable, then you can achieve this with a clever application of User Attributes.

  1. On each instance, create a User Attribute called "hostname".
  2. Set the default value of "hostname" to the hostname URL. This will differ per instance, of course.
  3. In your LookML, reference {{ _user_attributes['hostname'] }} to get the hostname URL!

This content is subject to limited support.                

Version history
Last update:
‎07-07-2021 03:48 PM
Updated by: