#Header dropdown to another page's anchor

3 messages · Page 1 of 1 (latest)

hardy laurel
#

what should i put in the link of a header's menu in order to navigate to another page's specific section? i tried something like /page/#section and then put an id="#section" in the target div, but it didn't work

im trying to use https://ui.mantine.dev/component/header-menu as template, but unsure what to put in the link for it to navigate to specific div

hardy laurel
#

I just tried something like this
<Menu.Item component="a" key={item.link} href={item.link}>{item.label}</Menu.Item>
with link as /page/#section
and it did the navigation to the right page, however, it is not scrolling to the target section..

mortal coral