Hello,
since I've started to use the pathauto module, EDIT links on each node lead to a different node, instead to the edit form of the pressed node.
how can I solve this?
Hello,
since I've started to use the pathauto module, EDIT links on each node lead to a different node, instead to the edit form of the pressed node.
how can I solve this?
Comments
Comment #1
gregglesFirst, I suggest you make a test site (if this isn't one already) so you don't mess up your live site.
Then, you can remove all of your aliases by deleting the contentents of the url_alias table. That should "reset" all aliases on your site. If you want to limit your reset to "node" aliases limit your delete statement to src like 'node%' or something like that.
You then need to figure out which of your pathauto patterns is causing the problem. A little bit of testing and trial-and-error should help in that regard. Let me know how those steps turn out.
Comment #2
gregglesJust changing the title...
Comment #3
greggles...and changing the status.
Comment #4
mtk commentedActually the error was caused by the Theme.
the link to the edit page was created as: mypage/edit (where mypages is the name created by pathauto)
instaed of: node/123/edit which works just fine.
it would be great if there was a way to create a mypage/edit on every creation of mypage...
Comment #5
gregglesOk, that's good to know that your problem is solved.
I believe there is already a feature request for the mypage and mypage/edit to be created. I'm not really keen on the idea because it would drastically add to the number of paths in the url_alias table which is already seen as a bottleneck without adding much value (i.e. not many people actually see the mypage/edit page so it is not used often so it's low value).
If someone else were to make a patch that added that and which were optional then I'd probably consider it, but that's for a different issue.
Thanks!
Comment #6
mtk commentedactually you're right, that's not worthy...