Redirect /profile to /dashboard and adjust header nav links

cgen-22e4b41b4e484d14a95d047c92359474
This commit is contained in:
Builder.io 2025-09-27 21:33:24 +00:00
parent 1fac35bf55
commit 1eb001e417

View file

@ -33,6 +33,7 @@ import GetStarted from "./pages/GetStarted";
import Privacy from "./pages/Privacy";
import Terms from "./pages/Terms";
import Admin from "./pages/Admin";
import { Navigate } from "react-router-dom";
import NotFound from "./pages/NotFound";
const queryClient = new QueryClient();
@ -49,7 +50,7 @@ const App = () => (
<Route path="/onboarding" element={<Onboarding />} />
<Route path="/dashboard" element={<Dashboard />} />
<Route path="/admin" element={<Admin />} />
<Route path="/profile" element={<Profile />} />
<Route path="/profile" element={<Navigate to="/dashboard" replace />} />
<Route path="/login" element={<Login />} />
{/* Service routes */}