For some reason on only one of my custom content types, the "automatic alias" box is not checked by default when you create a new node. Is there an obvious reason why this would start happening? It was working correctly for a while, but I just noticed this behavior.

CommentFileSizeAuthor
#2 pathauto.module.patch638 bytesmath_1048

Comments

math_1048’s picture

Hello, I get this problem too, please help
thanks and best regards

math_1048’s picture

StatusFileSize
new638 bytes

Hello, I do trying to fix this problem, by do change in this patch
hope this patch work with you too,
thanks

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

I can't duplicate this. Maybe it's a JavaScript error? Check your console logs.

Markpanzee’s picture

I tried the patch, but it didn't seem to make any difference.

Markpanzee’s picture

Hmm, I checked my console logs and didn't find anything that looks like it could be relevant.

Also, for what it's worth, this is a problem that all users on my site are having, not just me, so it is probably a problem with my drupal config rather than a browser issue.

kmillecam’s picture

I'm seeing a similar issue. Was introduced with the upgrade to pathauto 1.2

I'm noticing that a few of my articles are now referred to by their node # instead of their path alias.

Will see if I can dig up more evidence.

kmillecam’s picture

I can reproduce this now.

It appears that when you _edit_ a node the path alias checkbox becomes unchecked.

To repro:

1) Create a node
2) Check the url to make sure an alias was created.
3) Edit the node
4) Look at the "Automatic alias" checkbox to see whether it is checked or not.

In my testing (several nodes across several content types) the alias was created correctly on submit but when I went back to edit the Automatic alias checkbox was unchecked and the URL reverted to /node/nid

kmillecam’s picture

I've done some more testing and it appears that this only happens when you're editing your own article.

When I try to edit someone else's article, the checkbox is unchecked but the text box does include text that is used to generate the URL.

When I try to edit my own article, the checkbox is unchecked and the text box does _not_ include the previously-created url text. Thus the old alias is replaced with node/nid.

dave reid’s picture

@kmillecam: What's your alias pattern for the node type you're editing?

kmillecam’s picture

[type]/[title-raw]

dave reid’s picture

Maybe check your JavaScript logs to see if something's going wrong in the JS before the pathauto.js executes?

kmillecam’s picture

Sorry Dave, I didn't know I had JavaScript logs.

Where might I look for these handy records?

dave reid’s picture

If you're using Firefox, should just be Tools > Error Console.

kmillecam’s picture

Oh, /that/ JavaScript log.

Thanks for the direction.

I'll take a look.

kmillecam’s picture

Nope, no JavaScript errors.

kmillecam’s picture

Reverting to Pathauto 6.x-1.1 fixed the problem.

dave reid’s picture

Maybe see if #614832: Auto alias fails with some content types fixes this problem.

greggles’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Yeah, this seems like a duplicate.

garbo’s picture

I noticed that pathauto and the "node-as-block" module don't work well together.

see: http://drupal.org/node/707956