Iβm currently transitioning a script to work as a multipage app now that we have support for pages right within streamlit - hooray!
With this new model, Iβd like to be able to programmatically redirect a user back away from a page thatβs not ready for them yet - this could be because they havenβt authenticated, or it might be that they havenβt uploaded data etc on a previous page.
Suppose I have β¦
.
βββ pages
β βββ 01_uploader.py
β βββ 02_viewer.py
β βββ etc
βββ streamlit_app.py
β¦ and the user visits <myurl>/viewer
(they may have bookmarked this, perhaps) without having previously been to <myurl>/uploader
. I can easily enough make the page display nothing, but whatβs the streamlit
-y way to programmatically redirect them back to <myurl>
or to <myurl>/uploader
without causing a complete script re-run and a loss of session state?