st.page_link renders a clickable link between pages in a Streamlit multipage app. Give it a configured st.Page object and label, such as st.page_link(pages["signup"], label="Don't have an account? Sign up!"). It can also receive a regular URL for external navigation. section 8.4.3
Use page links to make the next action obvious:
- Add a signup link below a login form with pages["signup"]. section 8.4.3
- Add a login link below a signup form with pages["login"]. section 8.4.3
- Keep shared page definitions in a pages module, then select navigation options according to session state. section 8.4.3 section 8.7
Figure 8.8 Diagram showing the connections between pages via redirection and page links
A page-connection diagram helps distinguish direct page links from the navigation bar and redirection flow. section 8.4.3
