Hi,
I'm running Drupal 5.1 with Pathauto 5.x-2.x-dev and Token 5.x-1.x-dev and I noticed the following bug:
I've set up the forum node default path to be forum/[term]/[title], which would give, for example, the URL "forum/astronomy/the-sun", for example (except that my website is in portuguese).
But when I create the forum topic, it becomes forum/[title] only. BUT if I click in the edit tab and update the content, it's URL alias changes to the correct (and expected) forum/[term]/[title].
I'm no coder, but I think, based on the case, that it might happen if the node category term is created just after the pathauto has already given the node a path alias. That would explain why it's fixed updating the content, because the term would already exist.
Does anyone in there know how to fix this, or what's the likely cause of this bug (if it is one)? I don't know if there's a way to change the module call order for such a thing.
Just in case you want to see for yourselves, the website is at ordem.org, you may create a username and try to post any test topic to see the wrong url appearing (I would delete them manually later).
This issue is disturbing me because it screws with the SEO thing.
Thanks in advance, if you need more info, I'd gladly reply.
~Farblos
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pathauto_weight.patch | 1.13 KB | greggles |
Comments
Comment #1
farblos commentedI found a solution, I downloaded the Module Weight and set the Taxonomy module priority to -1 with it, so that the node would be given a term category before being given a path alias.
Thanks
Comment #2
yched commentedRequiring the taxonomy.module weight to be altered is not a valid solution IMO.
Shouldn't that be pathaoto's weight that should be altered (at install time) ?
Comment #3
gregglesAttached patch sets pathauto's weight to "1" whether a new install or an update.
I was unable to repeat the problem as you describe it. Are you using any other vocabularies on the forum node like perhaps a free tagging vocabulary?
I'd appreciate your help testing.
Comment #4
greggleswith patch and a title that explains why...
Comment #5
gregglesThis has been applied - thanks for the idea farblos.
Comment #6
(not verified) commented