From 98edcba5b94ea0542f5ad2b884d8e1647102505f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 30 Apr 2025 10:55:51 +0200 Subject: [PATCH] Bug 38010: Fix links to the manual The way we deal with routes for VueJS is messy and will need to be reconsidered, but it's not within the scope of this patch. (cherry picked from commit 2558583ef0fbf149664a3d9a2e3cec081ac505ff) Signed-off-by: Jonathan Druart --- Koha/Manual.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Manual.pm b/Koha/Manual.pm index 5da0d974760..fe5cc2c5b37 100644 --- a/Koha/Manual.pm +++ b/Koha/Manual.pm @@ -62,6 +62,9 @@ our $mapping = { 'acqui/uncertainprice' => '/acquisitions.html#create-a-basket', 'acqui/z3950_search' => '/acquisitions.html#create-a-basket', 'acquisition/vendors' => '/acquisitions.html#vendors', + 'acquisition/vendors/' => '/acquisitions.html#vendors', + 'acquisition/vendors/add' => '/acquisitions.html#vendors', + 'acquisition/vendors/edit/' => '/acquisitions.html#vendors', 'admin/additional-fields' => '/administration.html#additional-fields', 'admin/admin-home' => '/administration.html', 'admin/aqbudgetperiods' => '/administration.html#budgets', @@ -325,7 +328,7 @@ sub get_url { } $file =~ s/[^a-zA-Z0-9_\-\/]*//g; - if ( $file =~ m|^erm| || $file =~ m|^preservation| || $file =~ m|^vendors| ) { + if ( $file =~ m|^erm| || $file =~ m|^preservation| || $file =~ m|^acquisition/vendors| ) { $file =~ s|\d*+||g; } -- 2.34.1