Skip to content

Commit

Permalink
fix: Remove unnecessary route processing
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Dec 2, 2024
1 parent 877cdea commit fb656fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion frontend/src/pages/PageBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
9 changes: 0 additions & 9 deletions frontend/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit fb656fe

Please sign in to comment.