Navigate back from page:init eventhandler

Hi there,

is it possible to navigate back to the previous page in the page:init eventhandler?

My app uses stacked pages and have a sanity check in page:init. If the sanity check fails, I’d like to navigate back to the previous page, although this doesn’t work:

methods: {

    onPageInit(e) {
      if (!e.detail.route.context.enabled) {

I’m on F7-vue v3.4.2.


Nope, it won’t work because page routing is already started. You can do it in pageAfterIn or in Route’s async or beforeEnter handlers

Thanks, page:afterin is just fine!