Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripping www. does not work when there is a subdomain in URL #109

Open
Tay0108 opened this issue Apr 30, 2020 · 2 comments
Open

Stripping www. does not work when there is a subdomain in URL #109

Tay0108 opened this issue Apr 30, 2020 · 2 comments

Comments

@Tay0108
Copy link

Tay0108 commented Apr 30, 2020

When trying to strip www. from link with subdomain (e.g. www.unix.stackexchange.com) it does not work, www. stays. Is this intended behavior?

@sindresorhus
Copy link
Owner

See #38 (comment)

@TimDaub
Copy link

TimDaub commented Oct 25, 2023

Hey,

I came here to say that I find stripping the www subdomain a strange default choice. I had expected that this library would normalize the URL as much as possible but by absolutely minimizing the risk of breaking the URL. As someone who hosts websites myself, I'd say it's fairly common that there isn't a totally clean mapping between www and the apex domain. It might be kinda hard flipping that default choice, but I'd still welcome it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants