mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-02 16:52:31 +00:00
uase base path in links
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
import { _, locale } from 'svelte-i18n';
|
import { _, locale } from 'svelte-i18n';
|
||||||
import { languages } from '$lib/languages';
|
import { languages } from '$lib/languages';
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
import { base } from '$app/paths';
|
||||||
|
|
||||||
const {
|
const {
|
||||||
distanceUnits,
|
distanceUnits,
|
||||||
@@ -262,7 +263,7 @@
|
|||||||
bind:value={$locale}
|
bind:value={$locale}
|
||||||
onValueChange={(value) => {
|
onValueChange={(value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
goto('/' + (value === 'en' ? '' : value));
|
goto(base + '/' + (value === 'en' ? '' : value));
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -306,8 +307,11 @@
|
|||||||
</Menubar.Menu>
|
</Menubar.Menu>
|
||||||
</Menubar.Root>
|
</Menubar.Root>
|
||||||
<div class="h-fit flex flex-row items-center ml-1 gap-1">
|
<div class="h-fit flex flex-row items-center ml-1 gap-1">
|
||||||
<Button variant="ghost" href="/about" target="_blank" class="cursor-default h-fit rounded-sm"
|
<Button
|
||||||
>{$_('menu.about')}</Button
|
variant="ghost"
|
||||||
|
href="{base}/about"
|
||||||
|
target="_blank"
|
||||||
|
class="cursor-default h-fit rounded-sm">{$_('menu.about')}</Button
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
Reference in New Issue
Block a user