Browse Source

Fixed generated link routing

rigwild 11 months ago
parent
commit
9fb1b78f64
1 changed files with 2 additions and 2 deletions
  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