Switch_page not working on deployment

Hi,

When I run my app locally, it works perfectly fine. But after deployment, I am unable to use the switch_page function. Whenever I click on the switch page button, an error pops up stating:

ValueError: Could not find page resume. Must be one of ['homepage']

The app is live here. A snapshot of the error is shown below:

Is there any possible reason?

A couple of notes:

  • Streamlit 1.30.0 has just release an officially supported st.switch_page function if you’d like to give it a try.
  • I see that you are using webrowser for external links, but this will only work locally. That Python command will run on the Streamlit server where your app is hosted, not the client where someone is viewing your app. Try st.link_button!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.