Url change callback won't fire when the url is changed

Hi guys, so I am making a dashboard with multiple pages I am using the dcc.Link and dcc.Location
And yet my callback won’t fire, I even tried putting the callback and one of the links in the same file and it still won’t work.
The URL itself changes but the callback doesn’t fire
Any idea why?



I have the latest dash version and I know it should work because I tried running the example code for URL changes and it worked just fine.

Hi @Matan,

Try removing the [] from your input statement in the callback.

The problem was that the id activePage didn’t exist I had a div with classname = activepage.
I had suppress_callback_exceptions set to true so I couldn’t see the error.

1 Like