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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| path_redirect_numeric_redirects.patch | 1.03 KB |

#1
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
Automatically closed -- issue fixed for 2 weeks with no activity.