Okay, but I’m not checking login stats of user before rendering page.
What am looking for is to show page whether parameters has being passed to URL/paths or not.
For instance, if I have my home page path defined as /, and i include a param, I want to be able to show the home page irrespective of passed param set or not.
Yes, to make the route parameter optional, you will need to append (?) at the end of the param,
Example:
{
path: '/home/:param1?'
}
So,
{
path: '/home'
}
and
{
path: '/home/:param1?'
}
are treated as same.
PS: Framework7 Router uses https://github.com/pillarjs/path-to-regexp library for route path matching. So all the functionalities of this library are supported in Framework7 as well.