Bug 14004 introduced the ability to temporarily disable added CSS and Javascript in OPAC and interface by adding ?DISABLE_SYSPREF_IntranetUserCSS=1 for example to the url, but it doesn't work for pages referring to specific ids, for example : -https://kohapro.bulac.fr/cgi-bin/koha/circ/circulation.pl?borrowernumber=xxx -https://kohapro.bulac.fr/cgi-bin/koha/catalogue/detail.pl?biblionumber=xxx I thought I was because two '?' in the same url can't be used and try to replace it by '&' but it still doesn't work.
It works for me (master) Setting IntranetUserCSS with body{color:red} http://kohadev-intra.mydnsname.org:8081/cgi-bin/koha/circ/circulation.pl?borrowernumber=5 => All is red http://kohadev-intra.mydnsname.org:8081/cgi-bin/koha/circ/circulation.pl?borrowernumber=5&DISABLE_SYSPREF_IntranetUserCSS=1 => All is black
I dont reproduce in master With IntranetUserCSS : body { background-color:red; } Using : /cgi-bin/koha/catalogue/detail.pl?biblionumber=1&DISABLE_SYSPREF_IntranetUserCSS=1 It works perfect, no red color.
Could the difference be related to setup?
Still valid ?
Ahhh I found a case where it does not work. When authentication is mandatory, with preference OpacPublic disabled. The authentication page is aked from C4::Auth::checkauth() and we do not execute the code from Bug 14004 in C4::Auth::get_template_and_user() Do we move code at the beginning of C4::Auth::get_template_and_user() ?