Closed allejo closed 5 years ago
The url filter is the standard way of creating links to internal stakx documents. However, they may be times where it references external URLs.
url
jumbotron: image: https://placehold.it/1920x500 alt: ~
<img src="{{ url(this.jumbotron.image) }}" alt="{{ this.jumbotron.alt }}" class="landing-jumbotron__image" >
Given the above example, the url() filter will return
url()
/https://placehold.it/1920x500
Which breaks the image. When a string is feed into the function and contains ://, then it should return the value as is.
://
The
url
filter is the standard way of creating links to internal stakx documents. However, they may be times where it references external URLs.Given the above example, the
url()
filter will returnWhich breaks the image. When a string is feed into the function and contains
://
, then it should return the value as is.