Both WWW and non-WWW versions of the website can be reached, but they don't share login cookies
Environment
Website
Describe the bug
Both WWW (www.modrinth.com) and non-WWW (modrinth.com) versions of the website can be reached, but they don't share login cookies. Since different websites may link to Modrinth in different ways, this can cause confusion when opening a link and noticing that you're not logged in anymore.
Also, since there is no <link rel="canonical" href="..."> tag in the HTML, this can cause search engines to reduce Modrinth pages' rankings due to the search engine thinking there is duplicate content on the website.
Steps To Reproduce
Tested on Firefox 98, but this can likely be reproduced on any browser.
- Open https://modrinth.com (non-WWW).
- Sign in with GitHub.
- Open https://www.modrinth.com (WWW) in another tab.
- In this new tab, notice that you're not logged in.
Expected behavior
Make www.modrinth.com redirect to modrinth.com (preserving the existing part of the URL after the domain name). This is typically done using URL rewriting on the server side.
Doing this the other way around would work too, but I personally prefer not having www :slightly_smiling_face:
Additional context
No response
I think www.modrinth.com should just be removed and replaced by modrinth.com, I don't like www. For example https://www.logandark.net/ redirects to remove the www
www.modrinth.com does a 308 redirect to modrinth.com. Not sure how long this has been in place, but probably a few months by now. Marking as resolved as such.