I want this URL to navigate to that path in the router, /view/:dataId/. But if use this URL in my browser (using dev server, npm run dev), then F7 just says “cannot get”.
How do I make URL route navigate within app routing, with parameters? Thank you!
Hi! I’m currently using F7 v5.5 and I am pretty sure we have the same problem. If we navigate from the app to my-web/about it works, since we have set up pushState and pushStateSeparator. The thing is if we paste the link on URL and then we navigate, there is no page matching, either the app non found page. Any help is welcome! Thanks
Hey! I found out that if I set the pushStateSeparator to some value it works! Otherwise, if you set pushStateSeparator="" it doesn’t, at least in React. So for the moment I set “#” but by default is "!# so it should work like that. I don’t think it is a server problem but if you want to get it work without any separator try to do it with another Router, not the one provided by Framework7. If I have time I will try it this month.
I haven’t stayed tuned on F7 for some month but when I read about mix it, it results a really mess and absolutely unadvisable! Don’t know if there is newer solution. Anyway, good luck!
I cannot do it even without parameters! I need direct access to pages, cos I wanna use f7 as a dashboard panel. I use the create --ui cli and make the sample with it using f7 core.For example I want “/about” route to work and be shown in browser URL but I donno how to configure it. I make browserHistory in route options true but nothing changes. any idea?
In docs it says:
the route’s path property means the path/url that will be displayed in browser window address bar (if browserHistory enabled) when the following route will be loaded either by api or clicking on a link with same path.
But as soon as I make a page refresh via the browser reload button I get errors, the page is not displayed, I also cannot directly access the page via bookmark:
view.svelte? [sm]:195 Uncaught TypeError: switch_value is not a constructor
at Array.create_default_slot (view.svelte? [sm]:195:45)
at create_slot (index.mjs:69:27)
at create_fragment (router-context-provider.svelte? [sm]:2:38)
at init (index.mjs:1877:37)
at new Router_context_provider (router-context-provider.svelte? [sm]:9:11)
at create_each_block (view.svelte? [sm]:195:45)
at create_fragment (view.svelte? [sm]:193:9)
at init (index.mjs:1877:37)
at new View (view.svelte? [sm]:97:25)
at Array.create_default_slot (app.svelte:26:73)
Any ideas what is the problem here?
I noticed it seems to be a problem with routing to asyncComponents.
When I switch to a normal “component” routing it works, the page title is correct, but the back button on iOS is not working and the page displayed under the navbar is still the home page.