fix: correct redirect url when exiting impersonation mode
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m3s

- Now correctly routes the Super Admin back to /#/super-admin instead of the standard root dashboard.
This commit is contained in:
Cauê Faleiros
2026-03-11 14:42:04 -03:00
parent 671633b813
commit 89f250a43b

View File

@@ -217,7 +217,7 @@ export const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) =>
<button <button
onClick={() => { onClick={() => {
if (returnToSuperAdmin()) { if (returnToSuperAdmin()) {
window.location.href = '/'; window.location.href = '/#/super-admin';
} }
}} }}
className="w-full flex items-center justify-center gap-2 py-2 px-3 bg-zinc-900 dark:bg-brand-yellow text-white dark:text-zinc-950 rounded-lg text-xs font-bold hover:opacity-90 transition-colors" className="w-full flex items-center justify-center gap-2 py-2 px-3 bg-zinc-900 dark:bg-brand-yellow text-white dark:text-zinc-950 rounded-lg text-xs font-bold hover:opacity-90 transition-colors"