Skip to content

Fix links to catch current locale  #405

@sync-by-unito

Description

@sync-by-unito

After adding locale prefix, many links do not work (returns 404)

Steps to reproduce:

  1. Change store to German
  2. Add product to cart
  3. Open mini cart
  4. Click go to checkout
  5. Observe that URL /checkout returns 404 because there should be /de/checkout

Possible solution:

  1. Find all places whether router push new history state without using i18n locale helpers
  2. Find all places where nuxt-link does not use i18n locale helpers

Acceptance criteria
[ ] All links work as excepted with all locales
[ ] Alll links work as excepted when locale strategy is set up as: no prefix

Tip: Using Chrome extension like this: https://chrome.google.com/webstore/detail/link-checker/olcpkmmoifipcklgnphbhdhbpfniijmb?hl=en-GB could help find all broken links.

┆Attachments: image-20220113-151510.png

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions