How to prevent page reload for local links

Hi,

I’m trying to add local navigation links to a very long page by having local links at the top
of the form

html.A(‘xxxx’,href=’#xxxx’)

to navigate to further down the page to

html.Div(id=‘xxxx’)

now when i click the link, the page is always refreshed and puts me at the top again.
any hints what could be causing that? i would like to just jump to the anchor id, and
not do any rebuilding of the page.

Thanks!

I am facing the same issue when I want to use Modal. It gets refreshed once I click on html.A component.
No answers yet

I believe the recommended solution is to use a dcc.Link component.

https://dash.plot.ly/urls

1 Like