Url + in-page linking

I’m using drop downs to link pages and my sections. Is there a way to link to the page AND the section?

I have an About tab, and the dropdown list shows a link for A and B.

Right now I can get there from a different page using (/about#a), but if I’m already on the About page, the links don’t scroll to their container where the ID is set. If I set it to in-page linking, I can no longer get there from a separate page.

Thanks!

1 Like

Hi @moofawsaw, this would be a good opportunity to try setting up the dropdown links as a property that can be changed. If your About tab is inside of a component you can set up a property for each link that can control where the link is pointing to.

By default you can have the link point to the /about/#a anchor tag, but on the About tab itself you can specify to have the link point specifically to the anchor tag. This way you get the best of both worlds.