Closed (fixed)
Project:
Path redirect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2009 at 19:00 UTC
Updated:
10 Nov 2009 at 14:20 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| path_redirect_numeric_redirects.patch | 1.03 KB | neochief |
Comments
Comment #1
dave reidI'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.