Add a cache context to have consistent outbound url rewrites when cache is enabled

Created on 23 May 2024, about 1 month ago
Updated 25 May 2024, about 1 month ago

Problem/Motivation

When cache is enabled, outbound rewrited urls are stored in cache (block or other caches). So visiting pages with or without virtual_prefix display urls when they have been cached, not url with the current prefix.

Steps to reproduce

When cache is enabled and virtual_base is enabled, when i visit a cacheable page without virtual_base prefix, urls in page, menus etc et generated and cached without virtual_base prefix. Then visiting the same page with virtual_base prefix, urls in page which are cacheable still display without prefix.

In another way, if caches were generated visiting urls with virtual_base prefix, visiting cached pages without virtual_base prefix still display prefix un urls.

Proposed resolution

Implements Cache context.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France GoZ

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024