Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sifuhall on
I am trying to use URL alias to give my site better looking URLs and have done well except for one area with my forums.
For my URL Alias forum paths I have:
[vocab-raw]/[catpath-raw]
which gives me a nice looking forum category url like this:
www.mysite.com/forums/healthy-living/yoga
so far so good!
But when I click on an actual topic in the forum my URL becomes:
www.mysite.com/node/23026
I would like this URL to be:
www.mysite.com/forums/healthy-living/yoga/[POST TITLE]
In the URL Alias path for all forum topics I have:
[vocab-raw]/[termpath-raw]/[title-raw]
What have I done wrong?
Comments
pathauto and token
Do you have the latest version of pathauto and token? There is an issue with some tokens since pathauto 1.14, see #881270: [bookpath], [menupath], [*path] tokens not cleaned: aliases without punctuation removed, lower casing, etc..
Hi sifuhall, I have used the
Hi sifuhall,
I have used the exact configuration for forum path alias as yours that is
For my URL Alias forum paths I have:
[vocab-raw]/[catpath-raw]
In the URL Alias path for all forum topics I have:
[vocab-raw]/[termpath-raw]/[title-raw]
and I get clean url on the actual forum topic's page which is www.mysite.com/forums/foodies/vegies/forum1
where 'foodies' is the 'container', 'vegies' is the 'forum' and 'forum1' is the forum topic title.
heres what I am using (which could possibly differ from yours) ->
Drupal 6.14
Pathauto 6.x-1.4
Token 6.x-1.14
The only reason I can think of is probably those forum topics were created before you changed/updated path alias for forums. If this is the case, you should always check 'Bulk generate aliases for nodes that are not aliased' checkbox on URL aliases configuration page under 'Automated alias settings' tab before saving your changes.
If your issue still persists, could you help me with your module and drupal versions so that I can simulate it on my machine.
Regards,
BShetty
Thanks, bshetty. If I edit a
Thanks, bshetty.
If I edit a topic it does create the correct URL, so it looks like I need to delete any aliases and then bulk generate.