Bug 38010: Allow external breadcrumbs

This patch allows breadcrumbs to navigate to pages outside the Vue application

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Matt Blenkinsop 2024-09-24 15:16:37 +00:00 committed by Katrin Fischer
parent 555e81a1ab
commit e6c64c8836
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,7 @@
[% END %]
[% ELSIF ( CAN_user_acquisition_vendors_manage ) %]
<div class="btn-group"
><a class="btn btn-default" href="/cgi-bin/koha/vendors"><i class="fa fa-plus"></i> New vendor</a></div
><a class="btn btn-default" href="/cgi-bin/koha/vendors/add"><i class="fa fa-plus"></i> New vendor</a></div
>
[% END %]
</div>

View File

@ -62,4 +62,7 @@ const { removeMessages } = mainStore;
router.beforeEach((to, from) => {
navigationStore.$patch({ current: to.matched, params: to.params || {} });
removeMessages(); // This will actually flag the messages as displayed already
if (to.external || to.meta.self.parent.external) {
window.location.href = to.path;
}
});

View File

@ -9,7 +9,8 @@ import { $__ } from "../i18n";
export const routes = [
{
path: "/cgi-bin/koha/acqui/booksellers.pl",
path: "/cgi-bin/koha/acqui/acqui-home.pl",
external: true,
is_default: true,
is_base: true,
title: $__("Acquisitions"),