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.
Hi there,
whenever I try to follow the edit link of a node that has a parent node in the menu hierarchy (and a path that is built based on this hierarchy) it takes me back to the view of the parent node. Needless to say this makes it quite difficult to edit pages.
Apart from that it might be interesting to have an option to exclude edit (or other administrative) links) from being aliased, as apart from being a great module, it makes it quite difficult to find the nid of nodes.
Tnx,
HnLn
Comment | File | Size | Author |
---|---|---|---|
#2 | subpath_alias-multilingual-fix.patch | 1.12 KB | beeradb |
Comments
Comment #1
HnLn CreditAttribution: HnLn commentedOK, I investigated a bit further and I think I found the problem. Above problem only occurs in a multi lingual environment and a "mixed" menu tree, meaning that e.g a menu root item has a language but a child page hasn't. Since the query subpath_alias_url_alter_inbound sorts by language first, previously mentioned example of a sub page with no language will be last in the results and the parent page (since the path is based on menu) will be the first hit. Reversing the order of the ORDER BY arguments fixes the problem for me, but not sure if it breaks any other functionality.
Tnx,
HnLn
Comment #2
beeradb CreditAttribution: beeradb commentedThis appears to fix things for us as well. We were running into this issue after turning on node translations. Here's the patch:
Comment #3
rolando.isidoro CreditAttribution: rolando.isidoro commentedHi,
I was just experiencing this issue and applied your patch. Everything is working as expected now. Thanks.
Any ideia if this will make it to the module's source code anytime soon?
Rolando