diff --git a/apps/ui/src/routes/applications/[id]/__layout.svelte b/apps/ui/src/routes/applications/[id]/__layout.svelte index 89127fce6..546af6e90 100644 --- a/apps/ui/src/routes/applications/[id]/__layout.svelte +++ b/apps/ui/src/routes/applications/[id]/__layout.svelte @@ -107,7 +107,7 @@ $status.application.initialLoading = true; try { await del(`/applications/${id}`, { id, force }); - return await goto(`/`, { replaceState: true }); + return await window.location.assign(`/`); } catch (error) { if (error.message.startsWith(`Command failed: SSH_AUTH_SOCK=/tmp/coolify-ssh-agent.pid`)) { forceDelete = true; diff --git a/apps/ui/src/routes/databases/[id]/__layout.svelte b/apps/ui/src/routes/databases/[id]/__layout.svelte index 034e2c0a9..322ad590d 100644 --- a/apps/ui/src/routes/databases/[id]/__layout.svelte +++ b/apps/ui/src/routes/databases/[id]/__layout.svelte @@ -76,7 +76,7 @@ $status.database.initialLoading = true; try { await del(`/databases/${database.id}`, { id: database.id, force }); - return await goto('/', { replaceState: true }); + return await window.location.assign('/'); } catch (error) { return errorNotification(error); } finally { diff --git a/apps/ui/src/routes/services/[id]/__layout.svelte b/apps/ui/src/routes/services/[id]/__layout.svelte index d6b004b20..b4c56ff6b 100644 --- a/apps/ui/src/routes/services/[id]/__layout.svelte +++ b/apps/ui/src/routes/services/[id]/__layout.svelte @@ -85,7 +85,7 @@ if (service.type && $status.service.isRunning) await post(`/services/${service.id}/${service.type}/stop`, {}); await del(`/services/${service.id}`, { id: service.id }); - return await goto(`/`, { replaceState: true }); + return await window.location.assign(`/`); } catch (error) { return errorNotification(error); } finally {