Download & Extend

Manually set parent item is not included in path

Project:Pathauto
Version:7.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

I'm trying to use the menu items of parents as the automatically generated path by using [node:menu-link:parents:join:/]/[node:title].

I have removed forward slashes from being stripped in the punctuation settings.

The issue I'm having is that my top level item has its path set manually, rather than being generated by pathauto.

If this page's title is foo, but it's path is set to bar, when I add a child of this page, the path is /foo/baz, not /bar/baz as expected.

Is this intentional? It seems that pathauto is figuring out what the path *would* be if it were automatically generated, rather than what it actually is.

Thanks.

Comments

#1

Version:7.x-1.0» 7.x-1.1

Further to this issue, this does not only apply to manually set menu paths.

I have a page that has a page title of foo, an automatically generated path of foo, but a menu title of bar. When I create a new page, baz, and use the pattern of [node:menu-link:parents:join:/]/[node:title], I would expect to see the url for baz to be /foo/baz.

What's happening instead is that the path is /bar/baz, so the pattern seems to be picking up on the menu title, rather than the actual path.

Any ideas what is causing this?

nobody click here