I would like my pages URLs to have the same structure as my menu, so if page Baz is located under menu Foo/Bar/Baz, the url to it should be /foo/bar/baz. With D6 and I would simply use the token [menupath-raw], but that is no longer available.

The closest I have come is [node:menu-link:parent]/[node:menu-link], but that only seems to go two levels back, e.g. the url becomes /bar/baz. It works fine for /foo/bar and /foo though. Is this a bug?

The alternative is [node:menu-link:parent:url:alias]/[node:menu-link], but since I am using the Menu Firstchild module, it does not work with pages nested under “firstchild” menu items.

Any input/help will be much appreciated, regards, Egil.

Comments

hcabalic’s picture

I have a similar issue:

I have my default URL Alias for content paths set to:
[node:menu-link:parent:title]/[node:title]

So if I have parent node Lorem Ipsum with subpages Subpage 1 and Subpage 2, the URLs are as follows:
lorem-ipsum/
lorem-ipsum/subpage-1
lorem-ipsum/subpage-2

If I move Subpage 1 under a different parent in the menu, About Us, the URL Alias does not update.

Should be:
about-us/subpage-1

Not:
lorem-ipsum/subpage-1

dartdev’s picture

+100 we need some raw