F7 Svelte router problem

Hi, i have that problem with the function f7.views.main.router.navigate()

this is my code of the function, it prints “redirect” on my console but the function to navigate doesn’t works.
I’ve also tried f7.view.main.router.navigate(“/lavori/”); but nothing.
function onPageInit() { console.log(my_visual_docs); if (!my_visual_docs.vis) { console.log("redirect"); f7.views.main.router.navigate("/lavori/"); } }

Help me please :frowning: