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 <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Pedro Amorim 2023-09-01 13:03:21 +00:00 committed by Tomas Cohen Arazi
parent 6b74b5df5a
commit 7e87e39040
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -35,7 +35,7 @@ const routes = navigationStore.setRoutes(routesDef);
const router = createRouter({
history: createWebHistory(),
linkExactActiveClass: "current",
linkActiveClass: "current",
routes,
});