Skip to content

Commit

Permalink
Merge pull request #344 from sophiemoustard/COM-1043-fix
Browse files Browse the repository at this point in the history
Com 1043 fix
  • Loading branch information
cmolle authored Apr 3, 2020
2 parents f020e92 + 3c10b95 commit 3c83cd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/mixins/logInMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const logInMixin = {
await this.$store.dispatch('main/getLoggedUser', this.$q.cookies.get('user_id'));

if (this.$route.query.from) return this.$router.replace({ path: this.$route.query.from });
return this.$router.replace('/');
return this.$router.replace('/').catch(e => {});
},
},
}
2 changes: 1 addition & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Vue.use(VueMeta);

const Router = new VueRouter({
scrollBehavior: () => ({ y: 0 }),
routes: [...routes, ...vendorRoutes, ...clientRoutes],
routes: [...clientRoutes, ...vendorRoutes, ...routes], // routes needs to be at the end of array cf. /src/router/routes.js

mode: process.env.VUE_ROUTER_MODE,
base: process.env.VUE_ROUTER_BASE,
Expand Down

0 comments on commit 3c83cd9

Please sign in to comment.