Button Link doesn't work when used in columns

When buttons are paired with columns, the buttons no longer perform as expected.
For example,
when I run this it works.
if st.button(‘Web’):
webbrowser.open_new_tab(“https://www.youtube.com/”)

but this doesn’t work.

if cols[4].button(‘Web’,key=i):
webbrowser.open_new_tab(“https://www.youtube.com/”)

Are there any known fixes to this. Thank you!