-
Notifications
You must be signed in to change notification settings - Fork 56
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
Direct link to pre-selected items #2
Comments
Hi, I have tried by modifying the I was unable to fix the later issue, but you can try along these lines and see if you can find a better solution for this.
|
Thanks a lot for this. It seems working fine on my local computer. However, when deployed to streamlit.io, the direct link is being redirected to the home page. https://share.streamlit.io/giswqs/leafmap-apps/app.py?page=Dual Source code: https://github.com/giswqs/leafmap-apps/blob/master/multiapp.py |
Interestingly, this direct link works https://share.streamlit.io/giswqs/leafmap-apps/app.py?page=Demo |
Thanks for testing the code. |
Thank you for creating this nice multi-apps template. I wondered if it is possible to generate a direct link to the pre-selected item. The instructions from https://discuss.streamlit.io/t/direct-link-to-pre-selected-items/4817 works for a single app, but I can't get it to work for multi-apps.
For example, I created this multi-apps based on your template.
When users select an item from the navigation panel, the URL will reflect the change (e.g., page=Demo). However, when users directly navigate to the URL by clicking the link below, it will always redirect to the home page rather than the pre-selected item. Any advice? Thanks.
https://share.streamlit.io/giswqs/leafmap-apps/app.py?page=Demo
Relevant source code: https://github.com/giswqs/leafmap-apps/blob/master/multiapp.py#L45
The text was updated successfully, but these errors were encountered: