diff --git a/frontend/src/app/not-found.tsx b/frontend/src/app/not-found.tsx index b71564769..ea781e56e 100644 --- a/frontend/src/app/not-found.tsx +++ b/frontend/src/app/not-found.tsx @@ -1,5 +1,6 @@ "use client"; import { Button } from "@/components/ui/button"; +import { basePath } from "@/config/site-config"; export default function NotFoundPage() { return ( @@ -18,7 +19,7 @@ export default function NotFoundPage() { window.history.back(); } else { - window.location.href = "/"; + window.location.href = `/${basePath}`; } }} variant="secondary" diff --git a/frontend/src/config/site-config.tsx b/frontend/src/config/site-config.tsx index 2692f1ce4..9a7943530 100644 --- a/frontend/src/config/site-config.tsx +++ b/frontend/src/config/site-config.tsx @@ -5,7 +5,7 @@ import React from "react"; import type { OperatingSystem } from "@/lib/types"; // eslint-disable-next-line node/no-process-env -export const basePath = process.env.BASE_PATH || ""; +export const basePath = process.env.BASE_PATH || "ProxmoxVE"; export const navbarLinks = [ {