fix broken table sorting due to links being absolute all of a sudden

This commit is contained in:
Felix Hamann 2019-03-25 21:35:25 +01:00
parent 92c01150a6
commit 642a929d93

View File

@ -124,7 +124,10 @@
function clickHandler(event, tableOptions) {
event.preventDefault();
var url = new URL(window.location.origin + window.location.pathname + getClickDestination(this));
var url = getClickDestination(this);
if (!url.match(/^http/)) {
url = new URL(window.location.origin + window.location.pathname + getClickDestination(this));
}
updateTableFrom(url, tableOptions);
}