Knowledge Drop

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

  • 8 July 2021
  • 0 replies
  • 15 views

Userlevel 4

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.                

 

 


0 replies

Be the first to reply!

Reply