Project:Path redirect
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSizeStatusTest resultOperations
noredirect.patch1.49 KBIgnored: Check issue status.NoneNone

Comments

#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

Status:needs review» needs work

#3

Status:needs work» needs review

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

#4

Status:needs review» fixed

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

#5

Status:fixed» closed (fixed)

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