URL argument to cancel redirection
David Lesieur - August 14, 2007 - 15:05
| Project: | Path Redirect |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
With this patch, one can cancel the redirection by adding redirect=no to the query string.
Mediawiki uses a similar trick to let users view obsolete pages instead of always being forwarded to the preferred page (for example: this page on Wikipedia). Obsolete pages might still contain useful information, revision history, etc.
| Attachment | Size |
|---|---|
| noredirect.patch | 1.49 KB |

#1
I'm a little nervous that this feature could be used to hack a site. Most admins will want to depend on the redirect doing its thing and users NOT being able to view the "from" path pages.
How about a setting to turn this feature on/off? Perhaps we gain a new tab on the admin/build/path_redirect page for "settings" and/or we could put the settings at admin/settings/path_redirect.
I wonder if the variable_get() variables have been loaded before hook_init() is run. Hmmm... Well one way to find out is to try it! :-)
#2
#3
I've posted a patch here that provides this feature plus a settings form.
#4
I've committed (roughly) the patch mentioned in #3.
#5
Automatically closed -- issue fixed for two weeks with no activity.