The token is not replaced in menu link; "use tokens" checkbox not sticking.

Created on 30 September 2020, about 4 years ago
Updated 6 August 2023, over 1 year ago

Problem/Motivation

None of the menu tokens are being replaced. It appears that the checkbox for "Use tokens in title and in path" is not sticking.

Steps to reproduce

  1. I have installed Drupal 9.0.6 and Menu Token 1.0-alpha3+2-dev (with patch #3120040-08 applied for Drupal 9 compatibility).
  2. Caching is disabled.
  3. On the module config page, for "Available entities" I checked node and user.
  4. I created a custom login menu block and assigned it to the page header.
  5. I inserted various tokens such as [current-user:display-name] or [current-user:account-name] and even [site:name] as a test.
  6. I checked "Use tokens in title and in path" and have tried various options for Method for Node/User/0, then saved the form.
  7. I flushed cache.

Every time I reload the form, the checkbox is not set.

I tried patch #3162925-3 which causes the checkbox to stay checked, but has no effect on the output.

(Strangely, the menu token appears to work in a different environment--but I'm not sure how and I'm unable to get it to work again locally. I'm not even sure how it works in the other environment because the "use tokens" checkbox is not even checked.)

See attached images.

🐛 Bug report
Status

Active

Version

9.1

Component

Code

Created by

🇺🇸United States JasonLuttrell Washington, DC area

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024