Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Move PageTitleUpdater inside AuthProvider

Juan Denisb98265a3d708
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index d2fa9673..4fff768a 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -475,10 +475,13 @@ function AppRoutes() {
function App() {
return (
<Router>
- <PageTitleUpdater />
<ThemeProvider>
<LayoutProvider>
<AuthProvider>
+ {/* Inside AuthProvider — PageTitleUpdater reads panelTitle/
+ publicTitle via useAuth (branding), so it must sit under
+ the provider. It stays inside Router for useLocation. */}
+ <PageTitleUpdater />
<ResourceTierProvider>
<ToastProvider>
<NotificationsProvider>