From a5576f04c34c5472935cd5e924ad90d51c0cd649 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 20 Nov 2024 12:08:12 +0000 Subject: [PATCH] Bug 38010: Fix acqui-home.pl breadcrumbs --- .../intranet-tmpl/prog/js/vue/stores/navigation.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js index d46e97c0bbb..1fea696e11c 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js @@ -137,18 +137,23 @@ export const useNavigationStore = defineStore("navigation", { } function _mapMatches(currentMatches, params) { - return currentMatches + const matches = currentMatches .filter(match => _isBaseOrNotStub(match.meta.self)) .filter(match => _isEmptyNode(match.meta.self)) .map(match => { let path = _getPath(match, params); - return { + const externalPath = path.includes(".pl"); + const test = { ...match.meta.self, icon: null, - path, + ...(externalPath + ? { href: path, path: null } + : { path }), children: null, }; + return test; }); + return matches; } }, leftNavigation() { -- 2.39.3 (Apple Git-146)