S
SolidJS11mo ago
@vxern

Navigating to `//` causes an error to be thrown.

Using @solidjs/router, getting a SyntaxError when navigating to a path //, expected to resolve to a NotFound page.
3 Replies
@vxern
@vxern11mo ago
<Router>
<Routes>
<Route path="/" component={Home} />
<Route path="*" component={NotFound} />
</Routes>
</Router>
<Router>
<Routes>
<Route path="/" component={Home} />
<Route path="*" component={NotFound} />
</Routes>
</Router>
@vxern
@vxern11mo ago
@vxern
@vxern11mo ago
// is a valid URL path.