Bug 39712: Fix links to the manual from VueJS components
Query parameters break the manual mappings in vue modules.
If a url in a vue module contains query parameters the mapping for the manual fails and redirects to the homepage when 'Help' is clicked
To reproduce navigate to the agreements page in ERM and create at least one. On the list page, use the filters so that you have query parameters in the page URL. Click the 'Help' button - you just get the manual home page
Test plan:
Confirm that the original issue is fixed when this patch is applied.
Signed-off-by: Aude Charillon <aude.charillon@openfifth.co.uk>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0514af0117)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
fc8e8ad055
commit
251c92ebe2
|
|
@ -318,9 +318,9 @@ sub get_url {
|
|||
my ( $url, $preferred_language ) = @_;
|
||||
my $file;
|
||||
if ( $url =~ /koha\/(.*)\.pl/
|
||||
|| $url =~ '/koha/(erm.*)'
|
||||
|| $url =~ '/koha/(preservation.*)'
|
||||
|| $url =~ '/koha/(acquisition/vendors.*)' )
|
||||
|| $url =~ '/koha/(erm[^?]*)'
|
||||
|| $url =~ '/koha/(preservation[^?]*)'
|
||||
|| $url =~ '/koha/(acquisition/vendors[^?]*)' )
|
||||
{
|
||||
$file = $1;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue