Parcourir la source

Fixed generated link routing

rigwild il y a 4 ans
Parent
commit
9fb1b78f64
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/main.js

+ 2 - 2
src/main.js

@@ -13,9 +13,9 @@ router.beforeEach((to, from, next) => {
     store.commit('setCustomLinkData', to.query.q)
     // GDPR notice not approved
     if (!store.getters.isGdprValidated) {
-      if (to.name !== 'GdprNotice')
-        return next('/gdpr')
+      if (to.name !== 'GdprNotice') return next('/gdpr')
     }
+    return next('/experiments')
   }
   if (store.getters.isGdprValidated && store.state.customLinkData) {
     const request = JSON.parse(JSON.stringify(store.state.customLinkData)) // DEEP COPY