routerfix

This commit is contained in:
tonyrewin 2022-09-14 17:23:52 +03:00
parent 7f52347b99
commit dcff22fa32
2 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ export const Header = () => {
<ul class="col main-navigation text-xl inline-flex" classList={{ fixed: fixed() }}>
<For each={resources}>
{(r: { href: string; name: string }) => (
<li classList={{ selected: subpath() === r.href }}>
<li classList={{ selected: r.href.startsWith(subpath()) }}>
<a href={r.href} onClick={route}>
{r.name}
</a>

View File

@ -4,8 +4,8 @@ import { devtoolsExchange } from '@urql/devtools'
// FIXME actual value
const isDev = true
// export const baseUrl = 'https://newapi.discours.io'
export const baseUrl = 'http://localhost:8000'
export const baseUrl = 'https://newapi.discours.io'
//export const baseUrl = 'http://localhost:8000'
const exchanges: Exchange[] = [dedupExchange, fetchExchange]