streamlit / streamlit

Streamlit — A faster way to build and share data apps.
https://streamlit.io
Apache License 2.0
35.21k stars 3.05k forks source link

st.navigation doesn’t support deeplinks on first load #9624

Open srail opened 1 week ago

srail commented 1 week ago

Checklist

Summary

Navigating into a page before loading the entrypoint page results in a “page not found” error.

cc @jcarroll

Reproducible Code Example

No response

Steps To Reproduce

Simple repro on Streamlit’s own demo.

  1. Open anonymous browser
  2. Go to https://multipage-v2-preview.streamlit.app/page2 (Don’t visit the main url first).

Expected Behavior

Expected behavior was that entrypoint with st.navigation would be loaded first, but that doesn’t seem to be happening. This renders new navigation unusable for any app app requiring a deeplink for first time visitors.

Current Behavior

No response

Is this a regression?

Debug info

Additional Information

No response

github-actions[bot] commented 1 week ago

If this issue affects you, please react with a 👍 (thumbs up emoji) to the initial post.

Your feedback helps us prioritize which bugs to investigate and address first.

Visits

lukasmasuch commented 1 week ago

@srail Thanks for reporting this issue. I can't reproduce it with a simple app using st.navigation and the latest version of Streamlit. The issue in multipage-v2-preview might be related with the login/logout logic used in the example. Can you reproduce it with a simple app using st.navigation?