Routesubscriber should set the config override language

Created on 18 April 2023, over 1 year ago

Problem/Motivation

When you have a different path in a not default language, and you clear cache in the non default language, you will end up with page not founds.

Steps to reproduce

Default language: nl, path /zoeken
Config translation: en, path /search
Now, clear cache via the UI on /en/search - both pages will be pages not found now

Proposed resolution

Use setConfigOverrideLanguage in SearchApiPageRoutes::routes()

API changes

Data model changes

None

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇪Belgium swentel

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

Comments & Activities

Production build 0.71.5 2024