`socialLinks.sanitize` misformats valid Youtube urls (inserts `@` in the url)
AndrwM opened this issue · 1 comments
AndrwM commented
Hey all, thanks much for this great utility.
In using socialLinks.sanitize
for our implementation:
- Given a url of
https://www.youtube.com/channel/UCBTKd-zHSdr8POH-Y7LyPWg
socialLinks.sanitize
will format the url ashttps://www.youtube.com/channel/@UCBTKd-zHSdr8POH-Y7LyPWg
- This behavior can be replicated in the demo site: https://gkucmierz.github.io/social-links-app/
Demo site preview
This was ultimately not a dealbreaker for us, we were able to use an alternative strategy in our particular implementation. However I wanted to raise this with y'all for visibility.
Appreciate the efforts, all the best~
gkucmierz commented
You are trying to sanitize channel link.
I think channels are different things than profiles. And these two things should be served separately.
Right now there is no profile for channels. If you need it you can do PR with profile 'youtubeChannels'.
I will merge it.