Redirects and add locale in url if missing.

2.0.2 2019-12-17 14:42 UTC

This package is auto-updated.

Last update: 2024-06-14 13:24:57 UTC


Simple redirect router.

  1. Adds current locale to uri and redirects if not given.
  2. Removes trailing slash from url if given and redirects.

Examples: =>[locale]/my/path =>

*locale - if not given, detect browser locale. If browser locale is not given in shop, use default shop locale.