Closed bigmike36c closed 2 years ago
Thanks for reporting @bigmike36c
This has been fixed in the dash PR https://github.com/plotly/dash/pull/1947#pullrequestreview-901967435
Hey @bigmike36c Thanks for closing this, but I think it's best to keep it open until we decide if dash-labs should be updated as well.
@bigmike36c I just wanted you to know that this issue will be closed and the change will be removed from the dash PR as well. Even though the change seemed to work locally, it would most likely fail in production in a multi-user environment -- unless (a) these updates, even though initiated by one user, are intended to apply to all users, and (b) you’ve done something to make it work cross-process, like sharing the updates to the other processes via redis.
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!