Why the links work only if target="_blank"

Hi, I deployed this simple app,
the first link code is:

st.write('<a target="_self" href="http://www.google.com" >the first link does not work</a>', unsafe_allow_html=True)

it doesn’t work because the target=“_self”

the second link code is:

st.write('<a target="_blank" href="http://www.google.com" >the 2nd link works properly</a>', unsafe_allow_html=True)

it works because the target=“_blank”

What should I do to make the first link work properly while still target=“_self” ?

Can you explain more why you need to use target="_self"?

@tonykip Some of my website pages will contain too many links, if every link opened a new tab, the user will have too many opened tabs and that will not be nice. Could you please help me about that?