Skip to content

Commit

Permalink
Merge pull request #1 from spacek/redirect-update
Browse files Browse the repository at this point in the history
Remove dependency on APP_URL env. variable -> use window.location
  • Loading branch information
truesteps authored Jun 24, 2021
2 parents 518d039 + 3e0a552 commit d1feecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ export default {
const redirectPath = typeof this.$route.query.from !== 'undefined' ? this.$route.query.from : ''
// since nuxt can't handle removing CSS, "hard" redirect to previous URL
window.location = `${process.env.APP_URL}${redirectPath}`
const websiteLockRoute = process.env.WEBSITE_LOCK_FORM_PATH || '/website-lock'
window.location = `${window.location.href.replace(websiteLockRoute, '')}/${redirectPath}`
}
}
}
Expand Down

0 comments on commit d1feecd

Please sign in to comment.