diff --git a/client/src/components/layout/ContainerLayout.vue b/client/src/components/layout/ContainerLayout.vue index 4e7ada2..fed10b0 100644 --- a/client/src/components/layout/ContainerLayout.vue +++ b/client/src/components/layout/ContainerLayout.vue @@ -276,15 +276,10 @@ } function getHomePageRoute(){ - console.log(import.meta.env.VITE_SUB_PATH) if(import.meta.env.VITE_SUB_PATH == null){ - console.log("it got here 1") return constants.RUNNING_EXAMS_ROUTE; } - console.log("it got here 2") - - return import.meta.env.VITE_SUB_PATH + constants.RUNNING_EXAMS_ROUTE; } diff --git a/client/src/store/store.ts b/client/src/store/store.ts index 9b28dc4..a487eee 100644 --- a/client/src/store/store.ts +++ b/client/src/store/store.ts @@ -105,9 +105,6 @@ export const useAuthStore = defineStore("auth", () => { let route: string = useAuthStore().redirectRoute; let subPath: string | null = import.meta.env.VITE_SUB_PATH; - console.log("route: " + route); - console.log("subPath: " + subPath) - if(subPath != null && route.includes(subPath)){ route = route.replace(subPath, ""); } diff --git a/client/vite.config.mts b/client/vite.config.mts index d923d53..3d9209e 100644 --- a/client/vite.config.mts +++ b/client/vite.config.mts @@ -65,17 +65,10 @@ export default ({ mode }) => { }); function getSubPath(){ - console.log("it got here 1::::::::") - console.log(process.env.VITE_SUB_PATH) - if(process.env.VITE_SUB_PATH == null || process.env.VITE_SUB_PATH == ""){ - console.log("it got here 2::::::::") return "/"; } - console.log("it got here 3::::::::") - - return process.env.VITE_SUB_PATH; } }