How do I put line breaks for a long URL or other string in LookML without interrupting the string?

Knowledge Drop

Last tested: Sep 6, 2019
 

Use the {% comment %} tag:

dimension: test_link {

sql: '1' ;;

link: {

label: "test google with line break"

url:

"https://google{% comment %}

{% endcomment %}.{% comment %}

{% endcomment %}com"

}

}

Note that line breaks just add %20 into the URL so this would only be necessary if that will cause a problem in the link.

This content is subject to limited support.                

Version history
Last update:
‎04-05-2021 03:14 PM
Updated by: