DerploidEntertainment / Website

Infrastructure as Code and GitHub Pages sources for the Derploid website
https://www.derploid.com/
MIT License
2 stars 0 forks source link

All "redirect domain" paths should redirect to main site's home page #34

Closed Rabadash8820 closed 2 years ago

Rabadash8820 commented 2 years ago

There's no reason to maintain cache keys for every path that a client might append to our redirect domains. For example, all of the following should just redirect to https://www.derploid.com:

Rabadash8820 commented 2 years ago

On second thought, the current behavior is probably the desired one. We don't really have any paths other than the main page right now (no one should be navigating directly to, or bookmarking, the various email confirmation pages). However, one can imagine a site with lots of paths that also redirects domains; in that case, we would definitely want to preserve the provided path, so users don't have to re-enter a long or cryptic path to get where some old link was trying to lead them. As another example, if somebody navigated to faceboo.com/some/long/path (note the typo in the domain), it would be best to redirect that user to facebook.com/some/long/path. If nothing else, the fact that S3 makes preserving the path during a redirect the easiest option should be evidence enough that this is the typical, preferred behavior. This excellent article also suggests that preserving the path is most common.

Closing this Issue now...