Href in html and markdown > on link click > Connection refused

Hi Guys,

I have to include a link to my twitter account in html and consecutively render it.
Therefore I do the following:

twitterLink = """ <a href="https://twitter.com/ChristianKlose3">@ChristianKlose3</a> """
`st.markdown(twitterLink, unsafe_allow_html=True)

I get connection refused by twitter error. I wonder why?

For me it is not an option to do it with:
[[@ChristianKlose3](https://twitter.com/ChristianKlose3)](https://twitter.com/ChristianKlose3)
Even though this one works. Can someone explain what the difference is? Would be nice.

Cheers
Chris

Opening in new tab (adding target="_blank" to the <a> tag) solves the problem.

2 Likes