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

CommentFileSizeAuthor
#2 subpath_alias-multilingual-fix.patch1.12 KBbeeradb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

HnLn’s picture

OK, 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

beeradb’s picture

Version: 6.x-1.0 » 6.x-1.1
Status: Active » Needs review
FileSize
1.12 KB

This appears to fix things for us as well. We were running into this issue after turning on node translations. Here's the patch:

rolando.isidoro’s picture

Hi,

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