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
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.

AttachmentSize
noredirect.patch1.49 KB

#1

jjeff - October 5, 2007 - 13:40

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

David Lesieur - October 5, 2007 - 16:43
Status:needs review» needs work

#3

HorsePunchKid - January 21, 2008 - 03:57
Status:needs work» needs review

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

#4

HorsePunchKid - January 27, 2008 - 01:19
Status:needs review» fixed

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

#5

Anonymous (not verified) - February 10, 2008 - 01:56
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.