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

greggles’s picture

First, 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.

greggles’s picture

Title: edit link » paths prevent use of node edit alias

Just changing the title...

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

...and changing the status.

mtk’s picture

Actually 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...

greggles’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ok, 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!

mtk’s picture

actually you're right, that's not worthy...