Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 beabout/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
Comment #1
JeremyM-1 CreditAttribution: JeremyM-1 commentedAlso experiencing this - is there any update on this issue?
Comment #2
BrockBoland CreditAttribution: BrockBoland commentedNo, I haven't had any time to work on this. I'm open to ideas and patches though.
Comment #3
JeremyM-1 CreditAttribution: JeremyM-1 commentedWhat about manually doing a bulk update after creating a subpage, similar to bulk update on URL aliases config section?
Comment #4
BrockBoland CreditAttribution: BrockBoland commentedNow there's an idea. I didn't even know this was an option before today: admin/config/search/path/update_bulk
Comment #5
jeremymcminn CreditAttribution: jeremymcminn commentedNot 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.
Comment #6
BrockBoland CreditAttribution: BrockBoland commented@jeremymcminn: It should create those on node creation. That might be a different issue.
Comment #7
jeremymcminn CreditAttribution: jeremymcminn commentedYes, thats what I thought - Im sure it was doing that originally - Do you know how I could troubleshoot that?
Comment #8
BrockBoland CreditAttribution: BrockBoland commented@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.
Comment #9
BrockBoland CreditAttribution: BrockBoland commentedNevermind: I started looking into that and opened #1654982: Path alias not created for new nodes
Comment #10
Bitvark CreditAttribution: Bitvark commentedInstalling Extended path aliases module (http://drupal.org/project/path_alias_xt) solved it for me.
Any feedback?
Comment #11
ThaJoa CreditAttribution: ThaJoa commentedTried the extend path alias module but that one broke the subpage path for me.
Comment #12
Bitvark CreditAttribution: Bitvark commentedUsing 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
Comment #13
ThaJoa CreditAttribution: ThaJoa commentedThe 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.
Comment #14
Bitvark CreditAttribution: Bitvark commentedProblem detected and solution (although external) provided, set status on need review.