You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Router, Link, Route } from 'svelte-routing';
import About from './About.svelte';
import Home from './Home.svelte';
const basepath = '/some-path';
</script>
<Router {basepath}>
<p>{basepath}</p>
<nav >
<Link to="/">Home</Link>
<Link to="/about">About</Link>
</nav>
<div>
<Route path="/about" component="{About}" />
<Route path="/" component="{Home}" />
</div>
</Router>```
Hi I really dont understand what I make wrong. Links open localhost/url instead of localhost/some-path/url
ps. I used pnpm create vite -> svelte -> javascript
Thanks in advance
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: