Item139: Do not use an Oops redirect when a URL is mistyped
It really gets my goat that when you mistype a URL in the URL bar, you get redirected to oops instead of getting an HTTP response code, such as 500.
For example, edit the URL above; change "Tasks" to "Tusks" and hit return. You get redirected to oops, which wipes the URL you nearly typed correctly. Really
This is a real PITA when, for example, you pasted in a URL and have since wiped the paste buffer.
As well as being really, really
irritating, this also limits use of the standard scripts in "REST" type applications.
I'm marking this as a bug rather than an enhancement because it is so stupid.
- 11 Nov 2008 - 11:10
IIRC this will be really simple in TSA, but it would be really good to remove the redirects and replace them with proper content - that way the oops functionality isn't created via a re-post to the server using URL params, but rather just rendered directly, and sent to the browser with the proper HTTP response code.
While we're there, we should re-look at the exception handling code, as its hiding (ie, not reporting) information that is thrown to it when coders use 'die' - another thing that is gone in TSA.
- 11 Nov 2008 - 22:47
I replaced the main OopsException
redirect (the one that really annoyed me) but there remains an issue with the response code; I can't get it to return anything but a 500
- 01 Dec 2008
404 Research Lab
404 - page not found "was this information useful for you? 1-10"
- 02 Dec 2008
Got rid of the worst of the oops redirects. There are still some from plugins, but that'sinevitable
- 03 Dec 2008