AlexxNB / tinro

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

long paths not working #109

Closed atordvairn closed 2 years ago

atordvairn commented 2 years ago

i was using some conditional long paths like this:

 <Route path="/User/:pubKey/" let:meta>
  <Header />
  {#if $username}
    <Profile pub={meta.params.pubKey} />
  {:else}
    <Login />
  {/if}
</Route>

it works with the <a> tag but fails when reloaded standalone

i am using sirv

sirv public --no-clear --single
atordvairn commented 2 years ago

nvm got it