Missing cache context url.path for usage in Block

Created on 12 September 2024, 3 months ago

Problem/Motivation

When using this token in a block, there's always the first replacement rendered, no matter which page i open. I believe, it's because the block isn't part of the current-page entity.

Steps to reproduce

Add this token in a block, which is rendered on several pages. The first page loaded after a cache rebuild will serve the cached value for all other pages.

Proposed resolution

Add the cache context 'url.path' in hook_tokens of current_page_entity_tokens.module.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇩🇪Germany drupatz

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