Bug 38010 broke the vendors pages when Koha is running as a Mojolicious application This adds new routes to Koha::App::Intranet to mimic the Apache rewrite rules added in bug 38010. To be able to do that, the CGIBinKoha plugin's code had to be moved to a controller. The logic remains the same. Test plan: 1. Run `bin/intranet daemon -l http://*:3000/` 2. Point your browser to http://localhost:3000 (replace localhost by the hostname/IP of koha's container, if needed) 3. Go to Acquisitions and search for a vendor. You should see the list of vendors. 4. Click on "New vendor" button. Notice the URL changed to .../acquisition/vendors/add. 5. Reload the page. You should still see the form to create a new vendor 6. Verify that you can create a vendor and that you are then redirected to the list of vendors Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> |
||
|---|---|---|
| .. | ||
| CSRF.pm | ||
| Language.pm | ||
| RESTV1.pm | ||