diff --git a/src/Routers/AppRouter.tsx b/src/Routers/AppRouter.tsx index 1c348e17aff..82b091e8bff 100644 --- a/src/Routers/AppRouter.tsx +++ b/src/Routers/AppRouter.tsx @@ -84,12 +84,13 @@ export default function AppRouter() { useRedirect("/user", "/users"); - const allRoutes = { + // Merge in Plugin Routes + routes = { ...routes, ...pluginRoutes, }; - const pages = useRoutes(allRoutes) || ; + const pages = useRoutes(routes) || ; const path = usePath(); const [sidebarOpen, setSidebarOpen] = useState(false);