From 3cc5df716ca1f5a1ca28255ab31c5773ab052bf7 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 22 Jul 2024 19:56:26 +0200 Subject: [PATCH] small nit BASE_URL --- frontend/src/lib/navigation.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/navigation.ts b/frontend/src/lib/navigation.ts index 4101dae335..1901258da6 100644 --- a/frontend/src/lib/navigation.ts +++ b/frontend/src/lib/navigation.ts @@ -1,11 +1,12 @@ import { goto as svelteGoto } from '$app/navigation' -import { base } from '$app/paths' +import { base as svelteBase } from '$app/paths' +export { base } from '$lib/base' export function goto(path, options = {}) { - if (base == '') { + if (svelteBase == '') { return svelteGoto(path, options) } else { - const fullPath = path.startsWith(base) ? path : `${base}${path}` + const fullPath = path.startsWith(svelteBase) ? path : `${svelteBase}${path}` return svelteGoto(fullPath, options) } }