Project:Pathauto
Version:6.x-1.2
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi guys,
I'm using the forum module and my request is: how can I create an alias like this?

www.site.com/forums/forumcontainer/forumname/topicname

I tried in several ways without success.

Thanks

Nicolo'

Comments

#1

you can give your forum a URL alias:
[vocab-raw]/[catpath-raw]

and give forum nodes a URL alias:
[type]/[termpath-raw]/[title-raw]

Make sure your "forum" taxonomy term is above all other on the 'add forum post' form.

#2

Ok thanks,
in one installation work nut in another installation (where i made several tests with pathauto) the solution doesn't work: it creates urls like "node/number", why? I need to delet the old forum's alias?

Thank you.

Nicolo'

#3

You would be better off if you deleted the alias for the forum first, then setup pathauto with the string I gave you above, then do 'bulk generate alias' for the forums and forum nodes.

Its always been a huge pain for me, but it works better if you delete the alias first then 'bulk generate'. That's why it is best to set it up correctly the first time.
good luck.

#4

I deleted all the forum's aliasa and then 'bulk generate'. I have the same problem: www.site.com/node/32 for the forum's topic. Where can I check?

#5

will it work with other content types?

#6

Yes, I use the storm module and also a faq module and I don't have problems.

#7

What are your settings for path auto for faq content type?

you say 'module' but I asked if you are using additional 'content types' that work with path auto. Are faq & storm content types?

#8

Sorry I misunderstood you question.
Yes, I have created a new content type and I'm using it with pathauto without problems. The faq and storm 'nodules' create owns content type and also with them I don't have particular problems. Maybe a forum 'module' problem?

#9

I'm using the forum module and pathauto without any problems.

If it is working for one content type, FAQ, but not the forums, you need to double and triple check your pathauto settings. Also try setting the alias manually.

Also make sure you are using this most upto date forum module without any 3rd party patches.

Other than that I'm stumped.
You could try to do a fresh install of drupal/forum/pathauto and test in a clean environment, that might give you more information.

#10

In a fresh installation everything works great.

#11

Status:active» fixed

That is tough - then please keep tweaking the fresh installation until you can reproduce the problem. Without that we are debugging by esp.

#12

Status:fixed» closed (fixed)

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

#13

Status:closed (fixed)» postponed (maintainer needs more info)

This can turn out to be a i18n module's issue.

Here is how to reproduce the bug. (by bug I mean the situation in which you cannot build a pathauto alias for your forum nodes. Not by rebuilding them en-mass, not by resaving the nodes... )

You just have to click onto the country flag of a non-default i18n language... and the pathauto problems start - the node's alias is not showing up and you are stuck with "node/167" etc.

One solution is to force your users to see the site in a specific language depending on their geoIP-location / browser user-agent string.
Other option is to translate every forum node into the other languages.

The bug happens whenever I view/edit a German node while using non-German site language via the site-lang-flags (I see only node/134 aliases then). My site is setup so that German language is default and it has no "de"-prefix - we use "" as a prefix for DE.

Cheers. It can be i18n, forum, advanced_forum or pathauto's fault. Mamma mia.

#14

Status:postponed (maintainer needs more info)» closed (fixed)

@rsveiko Not sure how that relates to this issue. Please open a new issue.

nobody click here