/macros/i18n_redirect
Type: /type/macro
description: redirect page to path.xx based on locale
macro: value: <script>
var locale = "$_.get_locale()";
window.location = window.location.protocol + "//" + window.location.host + window.location.pathname + "." + locale + window.location.search;

</script>