From bb13193e446e7dc800180873edb34bb2f2b2f3ea 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 Signed-off-by: Michaela Sieber Signed-off-by: Jonathan Druart --- .../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 40d1a686ca0..fcbfccb1f5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/navigation.js @@ -139,18 +139,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: computed(() => { -- 2.34.1