diff --git a/src/routes/[...path]/+page.ts b/src/routes/[...path]/+page.ts
index fae4d6d..826ac63 100644
--- a/src/routes/[...path]/+page.ts
+++ b/src/routes/[...path]/+page.ts
@@ -1,6 +1,7 @@
 import type { PageLoad } from './$types';
 import { redirect } from '@sveltejs/kit';
+import { env } from '$env/dynamic/public';
 
 export const load: PageLoad = async () => {
-	throw redirect(302, '/');
+	throw redirect(302, `${env.PUBLIC_BASE_PATH}/`);
 };