fix(ui): replace history entry on redirect so browser back navigation works (#27478)
This commit is contained in:
13 files changed
+24
-24
No files matched your search
@@ -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;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user