Problem/Motivation

Url alias rules can use tokens; however, if during the content edit process you want to override the token for a particular item you cannot. This seems like a mismatch in functionality. Our menu alias structure depends on the use of [node:menu-link:parents:join-path]/ and without it content will not display correctly but I can imagine a lot of scenarios where a one rule per content type won't match business.

Steps to reproduce

* enable path alias for content types
* go to node/add/page
* add [node:title] to Url alias field and save
* note that token is escaped.

Proposed resolution

* update widget with "supports tokens" text
* add service to replace token with text.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

robpowell created an issue. See original summary.

robpowell’s picture

Hopefully this is a dup and there's a patch already in the works but if not I can roll one. I just need to know where to inject the token service.

cilefen’s picture

Version: 10.1.x-dev » 11.x-dev
larowlan’s picture

This sounds like pathauto in core which we already have an issue for

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
Related issues: +#229568: [polilcy, no patch] Pathauto in core

So is this a duplicate?

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Would agree this is probably covered by the issue in #5. With Drupal CMS though not sure if core is adding more modules but will see.