By sp09 on
Lately I've been having serious automatic alias path problems. Proper path aliases are not getting made which causing older nodes with the same title to display instead of the new node. The only thing that I can think of that can be causing this is the language module which I've recently set up.
Comments
Menu Cache
Have you cleared the menu cache?
If the automatic path that
If the automatic path that should be created for a new node isidentical with an already existing alias then the new one will not be created. So if the path that you expect to redirect to the new node redirects to an already existing one, the automatic alias settings are probably not unique. You could add the node id to the automatic alias so that no alias can be created automatically twice.
how do I do that?
how do I do that?
Go to
Go to /admin/build/path/pathauto and click 'Node paths'. In the text field for 'Pattern for all your content type paths:' add [nid] or some other token that isn't to be likely used twice for this content type. For example, if you have set the alias to 'blogpost/[title-raw]' change it to 'blogpost/[nid]-[title-raw]' or 'blogpost/[author-name-raw]/[yy]-[mm]-[dd]-[title-raw]'. You can also set this for Default path pattern if you don't want to use it for a specific content type.
I don't the nid to show.
I don't the nid to show. That's not good for seo.
Then look for something else, perhaps...?
Maybe there is something else in these nodes which IS better for SEO and, combined with the title and content type, etc, IS unique enough you won't have this problem. If not, using the node ID somewhere in your path (along with the node title, etc) is a better solution than dealing with conflicting path aliases and total failure, isn't it? ;-)
See you at the Drupalcon!
I understand your point but
I understand your point but it's not a good comprise. The "content-type/title" pathauto should work just fine. Like I said before I believe the language module was causing the problem through the neutral language settings from the English only settings. I've switched it back to English only for now so hopefully I won't be having the problem but this is a critical issue that needs to be fixed and not worked around.
I have
I have [nid]/content-type/title set up and path auto is still creating new nodes with old aliases which means the user sees another node instead of theirs.
So drupal still uses the old
So drupal still uses the old alias pattern? If you have set the new pattern for all content types, check is there is a pattern set for other content types (this one will be used instead if it is set)
Yes old patterns that I've
Yes old patterns that I've removed. Pathauto is not following the configured settings I have in place as it's still creating aliases from the old settings and still creating duplicate urls.
I suspect the "old settings" are hidden in the form, somewhere..
The URL Aliases "Automated alias settings" page has a lot of fieldsets that are collapsed by default and a lot of fields to enter aliases, including some that overlap other rules. I would carefully search that form (/admin/build/path/pathauto ) and make double-sure the alias patterns you are seeing aren't still in there somewhere. If it's not, then you have discovered an issue (which is likely already known, then), and you can search the Pathauto issue queue for a possible solution.
Good luck.
See you at the Drupalcon!
I've checked it enough
I've checked it enough there's no rules that I haven't seen, that's not the case I didn't start working with drupal yesterday. I've also check all the issues and I couldn't find one for my issue so I started one. This pathauto module has serious issues and making excuses for it, like the community users love to do for every critical drupal error is not going to solve or fix anything. The headaches are out weighting the benefits which is hinders growth through confusion.
@sp09: Have you found a
@sp09: Have you found a solution? I have exactly the same problem. And I guess it's not an pathauto issue. I still have the same problem. even if I deactivate the pathauto module. If I save a node Drupal generates the aliases according to the title. So if there are nodes with the same title (and there are many in my current project) all get messed up.
Any ideas what's the cause of that?
Is this a known issue in drupal 6? Would an update to Drupal 7 fix that problem (would be extremeley annoying)?
Gruß, Dave