tokens in prev/next link use the current entity when the link is inactive

Created on 11 December 2024, 5 months ago

Problem/Motivation

If I use a token like [node:title] in the link label for the 'next' link, then that is replaced with the title of the node that the link leads to.

Except if I look at the last node in the list, where the link is rendered as text. In this case, the token is replaced with the title of the *current* entity.

This is caused by this:

  protected function detokenize($string, $entity) {
    if (is_null($entity)) {
      $entity = $this->getEntity();
    }

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom joachim

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024