Closed (fixed)
Project:
Path redirect
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2007 at 15:05 UTC
Updated:
10 Feb 2008 at 01:56 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| noredirect.patch | 1.49 KB | David Lesieur |
Comments
Comment #1
jjeff commentedI'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! :-)
Comment #2
David Lesieur commentedComment #3
HorsePunchKid commentedI've posted a patch here that provides this feature plus a settings form.
Comment #4
HorsePunchKid commentedI've committed (roughly) the patch mentioned in #3.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.