Page MenuHomePhabricator

Site reverts to English after selecting home icon
Closed, ResolvedPublicBUG REPORT

Description

Expected behavior

Selecting the Wikimedia logo from https://developer-portal.wmcloud.org/es/get-started/ should navigate to https://developer-portal.wmcloud.org/es/

Observed behavior

Selecting the Wikimedia logo from https://developer-portal.wmcloud.org/es/get-started/ navigates to https://developer-portal.wmcloud.org/

Event Timeline

@bd808, how difficult do you think this will be to fix?

@bd808, how difficult do you think this will be to fix?

Good question. It might be as easy as adding code to our custom translation plugin to vary the site_url setting as we build each language variant. It should be reasonably easy to test that by modifying the localize_config method in TranslatePlugin.

It turns out that config.extra.homepage is what we need to vary. Patch incoming. :)

Change 785309 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/developer-portal@main] i18n: vary target url for logo nav by locale

https://gerrit.wikimedia.org/r/785309

bd808 changed the task status from Open to In Progress.Apr 22 2022, 3:53 PM
bd808 claimed this task.

Change 785309 merged by jenkins-bot:

[wikimedia/developer-portal@main] i18n: vary target url for logo nav by locale

https://gerrit.wikimedia.org/r/785309

Verified in production. Thank you!