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:
parent
555e81a1ab
commit
e6c64c8836
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue