From 3a862458454d01d5f09356a43f2b6138ec3d907f Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 1 Sep 2023 13:03:21 +0000 Subject: [PATCH] Bug 34691: Fix linkActiveClass in createRouter Test plan: 1) Visit /cgi-bin/koha/erm/agreements/add 2) Notice the "Agreements" menu item is not active 3) Apply the tests patch only 4) Run tests, watch them fail 5) Apply this patch, restart yarn js:watch and hard refresh browser 6) Repeat steps 1) and 2) Verify it's now active 7) Run tests, watch them pass Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts b/koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts index 4460be9a1c8..456f4435f22 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts @@ -35,7 +35,7 @@ const routes = navigationStore.setRoutes(routesDef); const router = createRouter({ history: createWebHistory(), - linkExactActiveClass: "current", + linkActiveClass: "current", routes, }); -- 2.25.1