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

CommentFileSizeAuthor
#6 3354842-6.patch1001 bytesswentel
#3 3354842-3.patch917 bytesswentel
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

swentel created an issue. See original summary.

swentel’s picture

Issue summary: View changes
swentel’s picture

Status: Active » Needs work
StatusFileSize
new917 bytes

This is only a partial fix, for some weird reasons, facet(s) (summaries) are gone when clearing the cache in a non default language.

swentel’s picture

Priority: Major » Normal
Status: Needs work » Needs review

It's possible the disappearing filters are an unrelated bug

swentel’s picture

Priority: Normal » Major
Status: Needs review » Needs work

Patch is against an older version (don't ask), but should be committed to latest as well against the latest - will try to reroll for latest diff.

The filter problem is something unrelated with our setup.

swentel’s picture

Status: Needs work » Needs review
StatusFileSize
new1001 bytes

Against latest dev.

karlshea made their first commit to this issue’s fork.

  • karlshea committed 75dd2086 on 8.x-1.x
    feat: #3354842 Routesubscriber should set the config override language...
karlshea’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.