From fb656fe8dd6ca493f241e9a65976f568513d6296 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Mon, 2 Dec 2024 15:21:28 +0530 Subject: [PATCH] fix: Remove unnecessary route processing --- frontend/src/pages/PageBuilder.vue | 1 - frontend/src/router.ts | 9 --------- 2 files changed, 10 deletions(-) diff --git a/frontend/src/pages/PageBuilder.vue b/frontend/src/pages/PageBuilder.vue index 028fe411..7ccaee9a 100644 --- a/frontend/src/pages/PageBuilder.vue +++ b/frontend/src/pages/PageBuilder.vue @@ -584,7 +584,6 @@ watch( page_title: "My Page", draft_blocks: [store.getRootBlock()], } as BuilderPage; - console.log("Creating new page", store.activeFolder); if (store.activeFolder) { pageInfo["project_folder"] = store.activeFolder; } diff --git a/frontend/src/router.ts b/frontend/src/router.ts index e04fd19d..b6553e75 100644 --- a/frontend/src/router.ts +++ b/frontend/src/router.ts @@ -93,14 +93,5 @@ const router = createRouter({ routes, }); -router.beforeEach((to, from, next) => { - if (to.path !== "/" && to.path.endsWith("/")) { - const path = to.path.slice(0, -1); - next({ path, query: to.query, hash: to.hash }); // Redirect to the path without the slash - } else { - next(); - } -}); - export { sessionUser }; export default router;