Routing question

Hi to all
I’m developing a simple app. I need to create some “permalinks” so that by clicking on an item, page content is changed (like the normal F7 workflow) But I also need to access directly to that page, from the main view.

In example let’s assume a “wizard” with 4 pages.
From the first page, I click on “Next” loading page2, page3, page4, pageN

In some cases, from the first page I have to go directly to pageN
How can I do this?

Hi,
you can route to it as any other page

app.router.navigate('/pageN/')
1 Like

Complement:

in file router.js

 {
    path: '/pageN/',
    url: './name_file.html', // path file
    options: {
      animate: false, // options
    },
    name: 'name_page',
    on: {
      pageInit: function (event, page){
          // event init 
      },
    },
  },
1 Like

thank you, i did like you say