I have a forum that has discovery.latest set as homepage. I still want to render custom landing components at the root URL /of the forum and a plain list view on the specific /latest route.
This works well toggling between the title link on the header and the Latest link on the navbar:
It doesn’t work with the sidebar links though because they use logic to resolve an url to a route. I could hack this by using URLs that don’t get resolved by Discourse, but are still resolved by the browser. E.g:

And then toggling from the sidebar works as well:
But this is likely fragile and requires additional styles to highlight the active links.
Would someone know a cleaner way to distinguish between /and /latest on the sidebar?