tasvideos
tasvideos copied to clipboard
Some alternate capitalizations of site URLs trigger the invalid URL page
If the first letter of any URL subdirectory doesn't match the case of the correct URL, the invalid URL page is triggered. However, the rest of the URL is case-insensitive.
Example: https://tasvideos.org/EmulatorResources/LibTAS is the correct URL. https://tasvideos.org/EmulatorResources/libTAS lands on the invalid URL page. (Expected: lands on the same page as above.) https://tasvideos.org/EmulatorResources/Libtas lands on the correct page.
Further, at least with the libtas example, when you attempt to edit any of its subpages, such as https://tasvideos.org/EmulatorResources/LibTAS/Usage, you're redirected to a blank screen (https://tasvideos.org/Wiki/Edit?path=EmulatorResources%2FlibTAS%2FUsage, changing the url to an uppercase LibTAS gets it to work though).
Don't remember if it was ever asked but do we want to make wiki page links case insensitive? Would probably solve a lot of problems.
The bug here is that scenario 3 (https://tasvideos.org/EmulatorResources/Libtas) is NOT behaving like scenario 2.
We don't want urls to be case insensitive for SEO reasons. And we don't want to simply redirect for you because if there is a link out in the wild, I want them to fix it, so we don't have endless redirects impacting the server. The page you land on has the correct link, so you can fix it. The site itself will always link to the correct page.
The bug here is that scenario 3 (https://tasvideos.org/EmulatorResources/Libtas) is NOT behaving like scenario 2.
Are you sure? An average visitor probably thinks that the page which titled libTAS would be reachable by scenario 2 libTAS
Yes, I'm sure, because if they think that and type it into the url, it should suggest the correct page which they can then click
Oh I understand now. This happens with all pages, that is https://tasvideos.org/Emulatorresources/Libtas and other variations for scenario 3 issue. edit: which lands on https://tasvideos.org/Wiki/PageNotFound?possibleUrl=Emulatorresources%2FLibtas with Emulatorresources/Libtas may take you to the intended page if the site guessed your intents right.
I don't understand this discussion. What do we even want the correct page to be?
Our site code says all pages need to start with an uppcase letter (with unrelated exceptions).
But the database (and thus our pages and links) all show the page as libTAS.
What is the intent?
I can answer the intent. The intent is that libTAS is wrong and needs to be fixed. Which it has.
What I'm unhappy about now is that invalid URL patterns get the redirect page. But case misspellings do not. So /BizHawk and /Bizhawk go to the page, but /bizhawk does not.
I'm not sure what I want to do about this yet. Kicking the can to somewhere down the road. At least wiki pages will not be created that do not match the intended naming conventions with the current set up
Whatever we do with this, currently the DB page name for the BizHawk page is /Bizhawk, and many referrers link to the correct /Bizhawk and many link to the wrong /BizHawk. So if we make the wrong casing to redirect to the PageNotFound page, we will need to change a lot of wiki pages.