Skip to content

Doesn't work on created() #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jdinartejesus opened this issue Oct 15, 2019 · 2 comments
Closed

Doesn't work on created() #14

jdinartejesus opened this issue Oct 15, 2019 · 2 comments

Comments

@jdinartejesus
Copy link

jdinartejesus commented Oct 15, 2019

I'm trying to redirect to a confirm-email page after login on the dashboard but doesn't work as expected. Currently navigates to confirm-email page but after returns to dashboard.

Eg.

// dashboard.vue
...
created () {
   this.$navigator.navigate('/confirm-email', { clearHistory: true })
}

Currently: Login -> Dashboard -> Confirm-Email -> Dashboard
Expected: Login -> Dashboard -> Confirm-Email

Thanks!

@rigor789
Copy link
Member

Unfortunately navigation can only happen when Frame/Pages are loaded - try using the loaded event and triggering a navigation from there.

@jdinartejesus
Copy link
Author

jdinartejesus commented Oct 20, 2019

Thanks @rigor789 , currently using if and else for this but loaded could be also a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants