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.

CommentFileSizeAuthor
noredirect.patch1.49 KBDavid Lesieur

Comments

jjeff’s picture

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! :-)

David Lesieur’s picture

Status: Needs review » Needs work
HorsePunchKid’s picture

Status: Needs work » Needs review

I've posted a patch here that provides this feature plus a settings form.

HorsePunchKid’s picture

Status: Needs review » Fixed

I've committed (roughly) the patch mentioned in #3.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.