Not a bug In public navigation, the link is relative the to current page URL, not the root URL

RobinHood

Well-known member
Affected version
2.0.2
This may not be a bug and may just be my misunderstanding of the system.

I have a custom public navigation entry that I added, it links to a page that I created.

For the link field I entered: pages/page-name/

This works when on the forum index, but it seems that when you're on any other page of the site it simply appends the link field to the URL of the page that you're on, which obviously doesn't work.

Is this intended?

If so, what can I put at the start of the link field to match whatever the site root url is? Or should I just hardcode it.

Thanks
 
That's just how relative links work. You could use /pages/page-name/ to have it always be relative to the root of your domain, or better yet use the link function {{ link('pages/page-name') }}.
 
Top Bottom