Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Can I use router without modifying browser URL address? #153

Open
MrSrsen opened this issue Jul 16, 2020 · 0 comments
Open

Question: Can I use router without modifying browser URL address? #153

MrSrsen opened this issue Jul 16, 2020 · 0 comments

Comments

@MrSrsen
Copy link

MrSrsen commented Jul 16, 2020

Hello there.

I have a question / feature request.

My use-case

I want to use svelte-routing for building smaller "widget-like" applications that can be used as a child component in another bigger parent application. Parent application (let's say vue.js with vue-router) will be managing master routing and be attached to browser URL but navigation in child applications would be functioning on "internal" URL address and not modifying browser URL address.

My question is then...

Is it possible to use a svelte-routing library without modifying browser URL address?

Example

An example would be Bootstrap tabs (https://getbootstrap.com/docs/3.3/javascript/#tabs-examples) where one tab would be one route but switching between tabs would not result in change of the browser URL address.


Update: After a little bit of investigation I setted const canUseDOM to false (in /history.js file) and it's almost working as I would like (url prop in App.svelte is not working). So my question can be potentially changed to: "How can I manually set value canUseDOM?"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant