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.