Skip to content

[BUG] Broken locale - page gets reloaded #577

@tender-barbarian

Description

@tender-barbarian

What is the bug?
Adding ?locale=<locale_name> to URL does not work - page gets translated then immediately reloads.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to https://<hostname>/app/reports-dashboards#/
  2. Append ?locale=pl to URL (<hotsname>/app/reports-dashboards#/?locale=pl)
  3. Observe how it gets translated for split second and then page reloads

What is the expected behavior?
Page stays translated.

What is your host/environment?

  • OS: Linux (Docker Opensearch official 2.17.1 image)
  • Version 2.17.1
  • Plugins:
core:opensearch@2.17.1
core:savedObjects@2.17.1
plugin:advancedSettings@2.17.1
plugin:bfetch@2.17.1
plugin:charts@2.17.1
plugin:contentManagement@2.17.1
plugin:dataExplorer@2.17.1
plugin:devTools@2.17.1
plugin:discover@2.17.1
plugin:embeddable@2.17.1
plugin:expressions@2.17.1
plugin:indexPatternManagement@2.17.1
plugin:inspector@2.17.1
plugin:legacyExport@2.17.1
plugin:management@2.17.1
plugin:managementOverview@2.17.1
plugin:navigation@2.17.1
plugin:opensearchDashboardsOverview@2.17.1
plugin:opensearchDashboardsReact@2.17.1
plugin:opensearchDashboardsUsageCollection@2.17.1
plugin:opensearchDashboardsUtils@2.17.1
plugin:opensearchUiShared@2.17.1
plugin:savedObjects@2.17.1
plugin:savedObjectsManagement@2.17.1
plugin:share@2.17.1
plugin:uiActions@2.17.1
plugin:urlForwarding@2.17.1
plugin:visDefaultEditor@2.17.1
plugin:visualizations@2.17.1
plugin:visualize@2.17.1
plugin:ganttChartDashboards@2.17.1
plugin:notificationsDashboards@2.17.1
plugin:apmOss@2.17.1
plugin:console@2.17.1
plugin:dashboard@2.17.1
plugin:data@2.17.1
plugin:dataSourceManagement@2.17.1
plugin:home@2.17.1
plugin:inputControlVis@2.17.1
plugin:mapsLegacy@2.17.1
plugin:opensearchDashboardsLegacy@2.17.1
plugin:queryEnhancements@2.17.1
plugin:regionMap@2.17.1
plugin:tileMap@2.17.1
plugin:usageCollection@2.17.1
plugin:visAugmenter@2.17.1
plugin:visBuilder@2.17.1
plugin:visTypeMarkdown@2.17.1
plugin:visTypeMetric@2.17.1
plugin:visTypeTable@2.17.1
plugin:visTypeTagcloud@2.17.1
plugin:visTypeTimeline@2.17.1
plugin:visTypeTimeseries@2.17.1
plugin:visTypeVega@2.17.1
plugin:visTypeVislib@2.17.1
plugin:alertingDashboards@2.17.1
plugin:customImportMapDashboards@2.17.1
plugin:indexManagementDashboards@2.17.1
plugin:reportsDashboards@2.17.

Recording - notice translated page flash around 00:07
https://github.com/user-attachments/assets/023b84b8-c69c-4422-a562-74288cbbca39

Do you have any additional context?
This way of changing locale was implemented in: opensearch-project/OpenSearch-Dashboards#7686 and works well everywhere else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions