Share links url

I’m creating a book review app and am allowing users to share music playlists. I have an input where a user Can paste in a playlist link from Spotify for example. Once the user paste a link in the input an icon shows and when a user clicks on the icon it sends the user to the website. Is this legal?

i can help with that