Skip to content

Commit

Permalink
fix: routing redirect from restriction to root route bug
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Spanos committed Aug 15, 2024
1 parent 5c0922c commit 48611e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/middleware/00-calendar-month.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default defineNuxtRouteMiddleware((to, from) => {
if (!to.params['date']) {
return navigateTo(`${getCurrentMonth() + 1}-${getCurrentYear()}`);
return navigateTo(`/${getCurrentMonth() + 1}-${getCurrentYear()}`);
}
});

0 comments on commit 48611e5

Please sign in to comment.