Hello,

We've moved from Drupal 4.7 with ancient pathauto module ;) to a shiny fresh 5.5 installation and guess what: pathauto 2.0!

All seemed perfect, following the upgrade guides, but now I discovered that some aliases are generated "wrongly". Let me explain:

We have a strictly hierarchically looking website, menus and nodes are shown like: A/B/C/D (not using evil index aliases). Pathauto used to create aliases like A/B/C/D/title_of_node, this is [menu]/[menupath]. Since 2.0, menu level A is not referenced in the alias, but B is used twice:

Old pathauto behaviour: Created A/B/C/D/title alias (= [menu]/[menupath])
New (wrong) behaviour: Creates B/B/C/D/title ( = [menu]/menupath-raw]).

Is there anything I am missing here? Please help, I am out of ideas.
Thanks,
Stephan

Comments

Anonymous’s picture

Version: 5.x-2.0 » 5.x-2.x-dev
Priority: Normal » Critical

I've now cleaned out the entire pathauto module from the db and did a fresh installation with the 2.x-dev version, but the problem persists.

For debugging purposes, I have set the "Pattern for all Book page paths:" to [menu]/spacer/[menupath-raw]. But the URLs created are like

http://myurl.com/leben_im_alltag/spacer/leben_im_alltag/mynode

Though "mynode" belongs to the menu "Verein", so the correct URL would be:

http://myurl.com/verein/spacer/leben_im_alltag/mynode

as it has been with our old 4.7 installation.

Can somebody please look at this? This is completely blocking our upgrade to 5.5.
Thanks a lot!
Stephan

greggles’s picture

Priority: Critical » Normal

Which version of token are you using?

greggles’s picture

I just remember that this was a bug in the 5.x-1.9 version which was fixed but has not made it to an official release yet. If you use the -dev release it should work.

If you can help test that (post your results back here) then I'll make an official release for it.

Thanks.

Anonymous’s picture

I am using 5.x-1.9 of token. Will try the -dev now.

Anonymous’s picture

I've now updated token to -dev (although the version information on the modules page still shows 1.9) but it doesn't fix the problem (in combination with -dev of pathauto).

I'm happy to test whatever you'd like me to help with, since this is my testing site.

Thanks for your help,
Stephan

greggles’s picture

If it still says that it's 1.9 then the update didn't work. Maybe try disabling pathauto, completely removing token, and upgrading it.

Anonymous’s picture

Yes, fixed!

Thanks,
Stephan

Anonymous’s picture

Status: Active » Fixed

Yes, fixed!

Thanks,
Stephan

Anonymous’s picture

Status: Fixed » Closed (fixed)

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