refac
This commit is contained in:
1 parent
69171a4c8b
commit
24370d5c40
2 files changed
+32
No files matched your search
@@ -906,6 +906,12 @@
|
||||
backendConfig = await getBackendConfig();
|
||||
console.log('Backend config:', backendConfig);
|
||||
} catch (error) {
|
||||
if (error?.authRedirect) {
|
||||
// Forward-auth proxy is redirecting to an external login page.
|
||||
// Full-page navigation lets the browser follow the redirect natively.
|
||||
window.location.href = '/';
|
||||
return;
|
||||
}
|
||||
console.error('Error loading backend config:', error);
|
||||
}
|
||||
// Initialize i18n even if we didn't get a backend config,
|
||||
|
||||
Reference in new issue
Block a user