-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating page_registry from a callback #85
Comments
Thanks for reporting @bigmike36c This has been fixed in the dash PR plotly/dash#1947 (review) |
Hey @bigmike36c |
@bigmike36c Feel free to re-open if you have any more questions or comments. |
Hello,
I think I found a bug when attempting to update the
page_registry
from a callback. The main issue I’ve been facing with this approach is the redirects do not seem to work. Inspecting thepage_registry
shows that theredirect_from
parameter has the proper list of values (e.g. in the code below'redirect_from': ['/callback-page'])
. But entering this in the url always returns the 404 page. However, when using the redirects with a page defined outside a callback, it works without issue.I worked up a quick example demonstrating the issue.
And here is a short video demonstrating the unexpected behavior:

My main use case for this is with dash enterprise's dashboard engine. When the user saves a dashboard, it creates a unique
snapshot_id
and I generate new pages for viewing and editing this dashboard.Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: