Hi Streamlit community,
Problem:
My multipage app with link buttons are always opening links in the new window (or new tab).
How to make it opening links in the same page or be able to configure the behavior?
I tested in Safari and Firefox with switched off function of ‘opening new pages in new window’, so it is not browser issue.
Some additional info:
Streamlit version 1.30
I am using multipage app with link buttons. The project setup is:
- Main page with link buttons to additional paged
- Link buttons are placed in the body of the main page
- ‘Pages’ folder with additional pages
See example of the link button code:
import streamlit as st
st.set_page_config(
page_title= 'Hello',
layout = "wide",
initial_sidebar_state="collapsed")
st.link_button(label = 'Link A',
url = '/link_a',
use_container_width = True)
st.link_button(label = 'Link B',
url = '/link_b',
use_container_width = True)