webui: fix redirect to root ignoring base path

This commit is contained in:
Pascal 2026-01-08 15:32:31 +01:00 committed by Aleksander Grygier
parent 2a33fc2059
commit 8916698294
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { base } from '$app/paths';
import {
chatStore,
pendingEditMessageId,
@ -97,7 +98,7 @@
const conversationDeleted = await removeSystemPromptPlaceholder(message.id);
if (conversationDeleted) {
goto('/');
goto(`${base}/`);
}
return;
@ -198,7 +199,7 @@
const conversationDeleted = await removeSystemPromptPlaceholder(message.id);
isEditing = false;
if (conversationDeleted) {
goto('/');
goto(`${base}/`);
}
return;
}