When creating a new node on my site (with pathauto turned on), pathauto creates the alias just fine, but after creating a node, drupal forwards the user to the newly created node using the node/nid path instead of the new pathauto path. Is this intended? If not, can it be fixed?

The reason this is of a concern to me is for one, I don't want my users to ever see a node/nid path on my site and also it's a concern since sending the user to node/nid creates entries in my cache_path table for the node/nid path which I don't want.

regards,
jonathan

Comments

greggles’s picture

Does this happen consistently? I've seen it happen once when the first node is created on a site but not after that.

One solution would be to use the global redirect module. Beyond that, I haven't seen this bug and don't know how to repeat it so it will be difficult to take any further action.

ilmaestro’s picture

Thanks for the response. Yes, it happens every time I submit any type of node. I just created a pair of blog entries and it occured for both, though to be fair, my site has been through a bunch of tweaks and mods.

I'm wondering does pathauto even currently attempt to redirect to the path alias immediately after a new node is created? If so, where is this at in the code? I can try and debug what's going on.

greggles’s picture

Pathauto itself doesn't try to redirect the user to the alias - that's up to the node/path modules themself.

Maybe could you try to build a brand new site, install just pathauto and see if you can get this to happen again? If so, provide the exact set of steps.

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

Better status.

jaharmi’s picture

Are you seeing this with nodes created via the Drupal Web interface, or via a Blog API client? Because with Pathauto 2.1 (at least), I’m not seeing these kinds of failures on Drupal 5.7 when I submit new story nodes, published to my front page, via MarsEdit 2.1 on Mac OS X.

This is similar to a previous problem I’d seen with Pathauto under Drupal 5.x, which was subsequently fixed.

greggles’s picture

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

No response for lots of time. Closing.