Redirects and add locale in url if missing.

1.2.1 2019-10-08 09:28 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.