You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where everything works fine as long as I have only 10 pages, i.e., n = 0,...,9.
As soon as I add an eleventh page and n turns into a two digit number, the new pages is entered as the third one, i.e., the sorting becomes: 0, 1, 10, 2, ..., 9.
This can also be seen by printing the page_registry in the global layout where I generate the navigation bar.
which prepends the order integer return with zeros to ensure correct sorting.
It is a dirty workaround as it would brake again when we have more then 100000000 pages but who would do that...
The text was updated successfully, but these errors were encountered:
Describe your context
Please provide us your environment, so we can easily reproduce the issue.
Describe the bug
Hi,
I have an app where I add pages via:
where everything works fine as long as I have only 10 pages, i.e., n = 0,...,9.
As soon as I add an eleventh page and n turns into a two digit number, the new pages is entered as the third one, i.e., the sorting becomes: 0, 1, 10, 2, ..., 9.
This can also be seen by printing the page_registry in the global layout where I generate the navigation bar.
The error is due to the string cast here: https://github.com/plotly/dash/blob/dev/dash/_pages.py#L361
A workaround is to replace the above line with
which prepends the order integer return with zeros to ensure correct sorting.
It is a dirty workaround as it would brake again when we have more then 100000000 pages but who would do that...
The text was updated successfully, but these errors were encountered: