AlexxNB / tinro

Highly declarative, tiny, dependency free router for Svelte's web applications.
MIT License
669 stars 30 forks source link

hash routing seems to be broken #64

Closed philippdormann closed 3 years ago

philippdormann commented 3 years ago

Hi there 👋

This issue basically refers to #42

I'm using

<script>
    import {Route,router} from 'tinro';
    router.mode.hash();
</script>

<!-- Link should point browser to '/#/page/subpage' -->
<a href="/page/subpage">Subpage</a>

<!-- content when URL is '/#/page/subpage' -->
<Route path="/page/subpage">Subpage content</Route>

Expected

Actual

Any help will be appreciated 😀 Thanks for your work!

AlexxNB commented 3 years ago

Do you use default template, or something based on Vite, like SvelteKit maybe?

philippdormann commented 3 years ago

Exactly! Just found the solution here 👌

Thanks for your quick response and have a nice day!

AlexxNB commented 3 years ago

Cool. I added troubleshooting section in Readme with this problem.

philippdormann commented 3 years ago

great, thanks! 🤝