patch for warning message when redirection takes place

apsivam - June 27, 2007 - 03:55
Project:Path Redirect
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

This patch will set a warning message to users so that they can update their bookmarks or correct links.

AttachmentSize
path_redirect_warning_message.patch552 bytes

#1

apsivam - June 27, 2007 - 04:55

I just applied this in my personal website
you can see this in action here
www.apsivam.in/tips/no_www_to_www_redirection this will take you to www.apsivam.in/guides/webmaster/www_redirection with the info message set

#2

jjeff - October 5, 2007 - 14:08
Status:needs review» needs work

I like this, but I think this should be a setting for the site administrator. Having a drupal_set_message() on the page will cause a full page load when page caching is turned on. This could be a performance problem.

Also there are many situations where the administrator would not want to the message to show up (tinyurl style). I sort of think that this should be a per-redirect option with a checkbox for "display redirect message" or even possibly a text field for the admin to be able to enter their own custom text.

#3

apsivam - October 7, 2007 - 16:27

Definitely a good idea. Let me come up with new patch.

#4

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

Here is an updated patch that includes a settings form and some code for #167265.

AttachmentSize
path_redirect-5.x-1.x_settings_4.patch 3.12 KB

#5

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

Seems to be working fine. I committed this without the nodeapi stuff and with a couple of minor corrections.

#6

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.