Here is a patch so that Subpathauto will correctly look for the rightmost path of the URI.

For example, if you have 2 aliases:
/path1 for /node/category/1234
/path2 for node /category/

if a user browses/node/category/1234/edit, he will see /path1/edit (instead of /path2/1234/edit as previously)

CommentFileSizeAuthor
rightmostsegment.patch3.34 KBvdsh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Postponed (maintainer needs more info)

I would expect the path to resovle in /path1/edit in this case?

vdsh’s picture

I am not sure but I think the user wants the "closer" alias to the path entered, isn't that right ?

Anyway, this is what I was looking for, but maybe some users would rather see /path2/1234/edit (as it is currently doing) than /path1/edit.

BenK’s picture

Subscribing