I have a menu called "Blah" and then a node that is a menuitem itself, and the menuitem is called "argh". The pathauto settings for that node is [menu]/[menupath], which should produce http://site/blah/argh, as far as the descriptions for the [menu] and [menupath] say.

Instead, the url is just http://site/argh/argh

Comments

greggles’s picture

Do you have this same problem on 5.x-1.8?

Thanks for your help testing.

dmitrig01’s picture

are you sure [menu] is the menu name?

greggles’s picture

Status: Active » Needs review
StatusFileSize
new1.97 KB

Indeed the problem is still there!

@jari - please let me know if that is the case.

I just created a patch which should fix this. Test it out and let me know.

I also took this opportunity to add a menu-raw token.

dmitrig01’s picture

Your spacing on the "raw" tokens is a bit odd. Can you take out four of te spaces?

vm’s picture

StatusFileSize
new2 KB

removed excess spacing of code per comment #4

tormu’s picture

Status: Needs review » Reviewed & tested by the community

Yes, this patch seems to work!

Hope you have the time to check this bug too, I reported the dashes instead of slashes -bug earlier elsewhere but now made another issues of it to keep the problems separated.. http://drupal.org/node/185439

greggles’s picture

Awesome - thanks everyone for your reviews and testing.

@jari - in general, please don't set an issue to be RTBC.

greggles’s picture

Title: [menu] is the same as [menupath] » [menu] token contains last piece of menupath instead of menu name
Status: Reviewed & tested by the community » Patch (to be ported)

Great - applied to the 5.x branch.

Just needs to be ported/applied to 6.x

greggles’s picture

Status: Patch (to be ported) » Fixed

Ported in eaton's work this past weekend.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.