backoffice: fix PDF download URL when there's a query string (#7055)
This commit is contained in:
parent
9b4e963c82
commit
a8b3708e12
|
@ -151,7 +151,7 @@ $(function() {
|
|||
});
|
||||
|
||||
$('button.pdf').click(function() {
|
||||
if (window.location.pathname.indexOf('?') == -1) {
|
||||
if (window.location.href.indexOf('?') == -1) {
|
||||
window.location = window.location + '?pdf=on';
|
||||
} else {
|
||||
window.location = window.location + '&pdf=on';
|
||||
|
|
Loading…
Reference in New Issue