Posted by neochief on October 18, 2009 at 7:00pm
Jump to:
| Project: | Path redirect |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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 | Status | Test result | Operations |
|---|---|---|---|---|
| path_redirect_numeric_redirects.patch | 1.03 KB | Ignored: Check issue status. | None | None |
Comments
#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.