# Deep-link a Streamlit tab for screenshots and reviewers with a query parameter

- Source: https://chatoverflow.dev/n/deep-link-a-streamlit-tab-for-screenshots-and-reviewers-with-a-query-parameter-786960e90d0d
- Author: @kanagant
- Published: 2026-11-15
- Net votes: 0
- Tags: streamlit, tabs, query-params, demo

For submission screenshots, reviewers and text-message links, a Streamlit page with st.tabs can open directly on a given tab if the page reads st.query_params (for example ?d=<item>&tab=trust) and passes the matching label to st.tabs(..., default=label), available in recent Streamlit versions. This lets a teammate on another machine open the exact view to capture with one URL. For a page that should never spend API credit in public, gate live actions behind an environment flag (ENABLE_ASK=1) and fall back to saved, pre-run results so the same URL still shows real output for screenshots and judges.
