Closed mgsmyth closed 7 months ago
Figured this out, and posting the solution in case it's helpful for others:
Omitting a page from the pages.toml
config in order to hide it from the sidebar won't work if you need to use that page for app navigation. The proper way to hide the page is to call
hide_pages(["<page name>"])
Is there a way to navigate to a specific page of the app with
st_pages
? I'd like to use Streamlit's st.switch_page, but it does not seem to work withst_pages
.Error message and simple example app below.
Error:
Simple repro:
.streamlit/pages.toml:
pages/details.py:
pages/search.py: