[Koha-bugs] [Bug 34052] New: Incomplete relative URL to subscription-detail.pl breaks navigation
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 19 05:48:28 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34052
Bug ID: 34052
Summary: Incomplete relative URL to subscription-detail.pl
breaks navigation
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Serials
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
On the serials-collection.pl page, there is a same-directory relative link to
"subscription-detail.pl" under the "Subscription num." column.
Most of the time this isn't a problem, but when you delete a serial, it sends
you to a URL like this:
http://localhost:8081/cgi-bin/koha/serials/serials-collection.pl/?op=delete_confirmed&biblionumber=1&subscriptionid=1&serialid=1#
That relative URL will be interpreted as the following:
http://localhost:8081/cgi-bin/koha/serials/serials-collection.pl/subscription-detail.pl?subscriptionid=1
Instead of generating an error, this actually loads the
http://localhost:8081/cgi-bin/koha/serials/serials-collection.pl page. The
/subscription-detail.pl would be just added to the PATH_INFO on the server.
The solution is to use a root-relative URL like we do everywhere else (e.g.
/cgi-bin/koha/serials/subscription-detail.pl)
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list