fix(ui): replace history entry on redirect so browser back navigation works (#27478)

This commit is contained in:
G30 authored and GitHub committed 2026-07-26 18:44:23 -04:00
1 parent 79695a1d14
commit 11d72c1ce2
13 files changed
+24 -24

No files matched your search

+2 -2
View File
@@ -14,12 +14,12 @@
onMount(async () => {
if ($user?.role !== 'admin') {
await goto('/');
await goto('/', { replaceState: true });
} else if (
!$config?.features?.enable_plugins &&
$page.url.pathname.includes('/admin/functions')
) {
await goto('/admin');
await goto('/admin', { replaceState: true });
}
loaded = true;
});