From 00541e8218dccbc0c1b179affe1890c2f2040138 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 22 Jul 2024 19:47:01 +0200 Subject: [PATCH] small nit BASE_URL --- frontend/src/lib/navigation.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/navigation.ts b/frontend/src/lib/navigation.ts index ba4e30577c..4101dae335 100644 --- a/frontend/src/lib/navigation.ts +++ b/frontend/src/lib/navigation.ts @@ -1,9 +1,8 @@ import { goto as svelteGoto } from '$app/navigation' -export { base } from '$lib/base' -import { base } from '$lib/base' +import { base } from '$app/paths' export function goto(path, options = {}) { - if (base == '/') { + if (base == '') { return svelteGoto(path, options) } else { const fullPath = path.startsWith(base) ? path : `${base}${path}`