framework7io / framework7-vue

Deprecated! Build full featured iOS & Android apps using Framework7 & Vue
http://framework7.io/vue/
MIT License
674 stars 151 forks source link

Async route breaks back-link navbar button #414

Closed JCKodel closed 6 years ago

JCKodel commented 6 years ago

This is a (multiple allowed):

Instructions for the JSFiddle

What you did

I tried to implement an authentication hook using route async function. If the user is not authenticated, redirect him to an authentication page with a back button (<f7-navbar back-link="Cancel" />)

Expected Behavior

Redirect the user to the authorization page and allow him to cancel the authentiacation using the back link to get back where he was before.

Actual Behavior

The navbar back button or the $f7router.back() don't work (I guess the navigation stack is empty).

JCKodel commented 6 years ago

Perhaps related to https://github.com/framework7io/framework7/issues/2100?

nolimits4web commented 6 years ago

Sorry, but something really wrong is happening here:

In F7-Vue, you need to use component and resolve routes with component as well

JCKodel commented 6 years ago

It would be nice some example in how to secure routes (authentication) on f7-vue documentation =\

nolimits4web commented 6 years ago

Solution is here http://forum.framework7.io/t/solved-f7-vue-async-router-blocks-back-function/3240