From a2bc811f5a42873bcb2bb712173c9cbff6c5ce77 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 --- 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 4460be9a1c..456f4435f2 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.30.2