vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.64k stars 2.09k forks source link

fix: fixed disabled redirects #6730

Closed dawid-ziobro closed 2 years ago

dawid-ziobro commented 2 years ago

Description

With redirects disabled, cookies were still set by accepted languages. This was causing a mix of languages where page default lang is en and accepted language or cookie is set to de. Some texts were in de and some in en language.

Related Issue

CT-192

How Has This Been Tested?

Tested with CT. Steps to reproduce a bug:

  1. In nuxt.config.js set:
    • autoRedirectByLocale: false.
    • defaultLocale to other than browser preferred language, f.e. if browser language is en, set default locale to de
  2. Run project.
  3. Open home page.
  4. Page should not redirect to en version.
  5. Texts will have mixed languages, english with deutch.

Expected result is to have texts in one language,

Screenshots:

mixed langs

Types of changes

Checklist:

Changelog

Tests

Code standards

Docs

github-actions[bot] commented 2 years ago

:blue_heart: vsf-next-demo successfully deployed at