a29d8c9eaf
This ensures that a duplicate locale key is not prepended to the path when navigating back (using browsers back button) to the root path containing query parameters or a hash value. Current behaviour: * `/fr?value=1` -> `/fr/another` -> click browser back button -> `/fr/fr?value=1` * `/fr?value=1` -> `/fr?value=2` -> click browser back button -> `/fr/fr?value=1` * `/fr#section` -> `/fr/another` -> click browser back button -> `/fr/fr#section` * `/fr#section` -> `/fr#another` -> click browser back button -> `/fr/fr#section` Fix: Remove query string or hash value from path before determining whether to add the locale to the path in `addLocale` function. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added Fixes: #24287 |
||
---|---|---|
.. | ||
utils | ||
router.ts |