Closed (won't fix)
Project:
Path redirect
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2009 at 04:50 UTC
Updated:
5 Jan 2011 at 15:56 UTC
Currently the code just runs the following upon save:
// Remove any other redirects from the same path
db_query("DELETE FROM {path_redirect} WHERE path = '%s'", $edit['path']);
This is extremely poor handling of the possible situation where an existing path redirect is being handled, the user is never informed of the removal. It should at the very least display a message indicating the fields from the old record.
Patch will follow.
Comments
Comment #1
dave reidThere is a check in path_redirect_edit_validate() if the user is trying to add a duplicate 'from' redirect. What really should be done is:
Comment #2
damienmckennaSounds like a great idea for another patch ;-)
Comment #3
dave reidD5 is no longer supported.