From: Adam Dullage Date: Tue, 30 Apr 2024 19:32:25 +0000 (+0100) Subject: Make note route title param optional X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ee9d22e01bc14c2fca60bf565d9e308cffeb0436;p=flatnotes.git Make note route title param optional --- diff --git a/client/router.js b/client/router.js index 16649af..978318e 100644 --- a/client/router.js +++ b/client/router.js @@ -17,7 +17,7 @@ const router = createRouter({ props: (route) => ({ redirect: route.query[constants.params.redirect] }), }, { - path: "/note/:title", + path: "/note/:title?", name: "note", component: () => import("./views/Note.vue"), props: true,