Add a new subpage for a content type. Visit a node of that type, and go to that new subpage on that node. The subpage will be available, but the aliased path will not.

How to replicate:

  • Create a page node, with the path about.
  • Edit the Page content type and add an Info subpage to display some view, with the subpath info.
  • Go back to about and click on the Info tab to visit that subpage.
  • The path will be node/{nid}/info when it should be about/info. The aliased path is not created.

I'm not sure yet how to address this. When creating or editing a subpage on a content type, the module needs to create path aliases for all existing nodes of that type. But, since there could be thousands of nodes to update, it won't make sense to try to do them all when saving the subpage.

The same problem will exist when deleting a subapge: the existing path aliases for that subpage will remain in the DB.

Comments

JeremyM-1’s picture

Also experiencing this - is there any update on this issue?

BrockBoland’s picture

No, I haven't had any time to work on this. I'm open to ideas and patches though.

JeremyM-1’s picture

What about manually doing a bulk update after creating a subpage, similar to bulk update on URL aliases config section?

BrockBoland’s picture

Now there's an idea. I didn't even know this was an option before today: admin/config/search/path/update_bulk

jeremymcminn’s picture

Not sure if this is part of an issue, but when I create a new node, the url aliases of subpages are node/345/subpage instead of the alias I define - it is only if I actually go into edit the node and save that they update. This is different to the issue of adding a subpage and previous aliases dont update.

BrockBoland’s picture

@jeremymcminn: It should create those on node creation. That might be a different issue.

jeremymcminn’s picture

Yes, thats what I thought - Im sure it was doing that originally - Do you know how I could troubleshoot that?

BrockBoland’s picture

@jeremymcminn Could you open a new issue about that? Please provide as much detail as you can, especially in regards to path configuration and things like that.

BrockBoland’s picture

Nevermind: I started looking into that and opened #1654982: Path alias not created for new nodes

Bitvark’s picture

Installing Extended path aliases module (http://drupal.org/project/path_alias_xt) solved it for me.
Any feedback?

ThaJoa’s picture

Tried the extend path alias module but that one broke the subpage path for me.

Bitvark’s picture

Using a View as the content for the subpage, with:
Node sub pages 7.x-2.0-beta2
Extended path aliases 7.x-1.0
Pathauto 7.x.1.2
on Drupal 7.18.

You have to delete aliases and bulk update them, I think.

If it doesn't work again, we need more details to help you

ThaJoa’s picture

The problem seemed to be in the latest dev version of Extended path alias (7.x-1.0-alpha+2-dev) that I was using.
Downgrading it to 7.x-1.0 solved the problem.

Bitvark’s picture

Status: Active » Needs review

Problem detected and solution (although external) provided, set status on need review.