Skip to content
This repository was archived by the owner on Apr 27, 2025. It is now read-only.

Commit c88bb20

Browse files
author
Matteo Gabriele
committed
fix(router): redirect on landing
1 parent 84f585c commit c88bb20

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/router.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ export const registerRouter = (router, store) => {
8080
if (detectedURLPrefix && !isLanguageSetAsCurrent) {
8181
// Set the detected language as the new language
8282
store.dispatch(events.SET_LANGUAGE, detectedURLPrefix.urlPrefix)
83-
} else {
84-
// First time the router is registered, or the language doesn't exists,
85-
// the route needs to be synced with the current language.
86-
updateURLPrefix(router, store.getters.defaultCode)
8783
}
8884

8985
router.beforeEach((to, from, next) => {

0 commit comments

Comments
 (0)