From 20813e78adb06bc067ce880c766975db9f153faf Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Jan 2021 16:51:06 +0100 Subject: [PATCH] Bug 27467: [SOLUTION 1] Don't repeat port This patch fixes a bug in the keepConditions plugin --- .../lib/jquery/plugins/dataTables.keepConditions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/dataTables.keepConditions.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/dataTables.keepConditions.js index 0217ba8ca5..6a6d4867cd 100644 --- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/dataTables.keepConditions.js +++ b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/dataTables.keepConditions.js @@ -1531,7 +1531,7 @@ var KeepConditions = (function () { action: function action(e, dt, node, config) { var dtLanguage = dt.settings()[0].oLanguage.keepConditions, conditionsHash = dt.settings()[0].oKeepConditions.structureHash(true), - copyThis = document.location.protocol + '//' + document.location.host + (document.location.port.length ? ':' + document.location.port : '') + document.location.pathname + '#' + conditionsHash, + copyThis = document.location.protocol + '//' + document.location.host + document.location.pathname + '#' + conditionsHash, success, language = { btnNoHashTitle: dtLanguage.btnNoHashTitle || 'No Conditions', @@ -1581,4 +1581,4 @@ var KeepConditions = (function () { } } }; -})(window, document, jQuery); \ No newline at end of file +})(window, document, jQuery); -- 2.20.1