Pathredirect + Pathauto + numeric aliases "http://site.com/123" = error

neochief - October 18, 2009 - 19:00
Project:Path redirect
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I found a situation where path_redirect gives you an error. For example, set your pathato aliases generations for users just for [uid]. Pathauto will generate aliases like http://site.com/123 and pass "123" to path_redirect for path_redirect_delete(), which thinks that it's redirect ID and doing something wrong.

Here's a patch to fix this behavior.

AttachmentSize
path_redirect_numeric_redirects.patch1.03 KB

#1

Dave Reid - October 27, 2009 - 14:16
Status:needs review» fixed

I've changed the APIs to have a path_redirect_delete($redirect) where $redirect is a redirection record/array from path_redirect_load(), or path_redirect_delete_by_path($path) where $path is a string. I'll need to update the Pathauto implementation although it should work just fine with the latest code.

#2

System Message - November 10, 2009 - 14:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.