F7 v6 Svelte Navigation URL/Router problem

I have a small problem with navigation.
{Framework7 v6 + svelte}

I enabled the parameter with browserHistory, but when I load the URL again (URL used to share profiles) the page does not open.

…and after reload URL…if i click to the link of the same user it don’t open (because it is opened in background)

I noticed that in the DOM it loads the page and it is active but hidden(back). If I remove home manually, it can be seen that it is open in the background

what are the parameters for this configuration?
and that depends on the parameters on the view or page?

this problem is caused from View,Pages or Router?

Can you post more complete example of what you have in App.svelte and in routes?


image

can it be a problem because of the home page where I check if loggedin?

MainLoggedIn comonent (here are links to users)

User Component

Yes, because what you have is loggedIn is false initially when router starts to preload the home page. Then, for example, if it set to true it will try to swap the page. Such behavior actually not really supported by router.

It is better to return always same/single Page component, but have different logic inside of the page, that will not confuse router