Checklist
Summary
Make st.logo always link to the home page (in MPA apps) if link is not provided or allow link in st.logo to do an internal redirect to one of the app pages, e.g.:
st.logo(..., link: st.Page | Path | str)
If the provided (relative) str url is matching with one of the pages, we can also just do an internal redirect instead of doing a full page reload. This is more optimal for iframed setups and it keeps the app session alive instead of doing a full page reload. The parameter should work similar to how to the page parameter in st.page_link and st.switch_page.
Additional Context
No response
Checklist
Summary
Make
st.logoalways link to the home page (in MPA apps) iflinkis not provided or allowlinkinst.logoto do an internal redirect to one of the app pages, e.g.:If the provided (relative)
strurl is matching with one of the pages, we can also just do an internal redirect instead of doing a full page reload. This is more optimal for iframed setups and it keeps the app session alive instead of doing a full page reload. The parameter should work similar to how to thepageparameter inst.page_linkandst.switch_page.Additional Context
No response