Join the Webstudio community

Updated 2 months ago

When Binding a Href, Which One Is the Correct Expression?

At a glance

The post asks which expression is correct when binding an href - /blog/${Collection Item.fields[1].value} or ${system.origin}/blog/${Collection Item.fields[1].value}. A community member comments that either can be used, but they prefer relative URLs like /blog. There is no explicitly marked answer.

When binding a href, which one is the correct expression?
/blog/${Collection Item.fields[1].value} or ${system.origin}/blog/${Collection Item.fields[1].value}
J
1 comment
you can use either but i prefer relative URLs ie /blog
Add a reply
Sign up and join the conversation on Discord