I am using the built in Multi-Page feature use_pages=True which was added in 2.5 I believe. In my application I would like to trigger a callback when a specific page loads. However, since there are multiple entry points to this page (from other pages as well), I would like to trigger a callback when the URL changes to a specific path (e.g., /home). Is there any way to do this with the built-in multi-page feature??
Any suggestions would be greatly appreciated. Thanks in advance!
You can always include dcc.Location in your layout and trigger your callback with pathname property. Syntax for the input will be same as described in https://dash.plotly.com/urls for Multi-Page Apps without Pages.