https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42527 --- Comment #4 from David Cook <dcook@prosentient.com.au> --- (In reply to Jonathan Druart from comment #3)
I've started here but actually get_script_name is not the place to fix IMO. Why are we missing the / between opac and errors? $ENV{SCRIPT_NAME} is /opacerrors/404.pl when we reach get_script_name.
I think it's because of the subrequest in Plack::Middleware::ErrorDocument: https://metacpan.org/dist/Plack/source/lib/Plack/Middleware/ErrorDocument.pm... https://metacpan.org/module/Plack::App::File/source#L26 Now the paths in our ErrorDocument use relative paths because of reasons I can't remember. I know it is (or was) important at the time. Although that gives me an idea... -- You are receiving this mail because: You are watching all bug changes.