We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cb2bbd commit b4db30cCopy full SHA for b4db30c
src/Resources/public/js/datatables.js
@@ -88,10 +88,12 @@
88
var diff = data.filter(el => { return baseState.indexOf(el) === -1 && el.indexOf('time=') !== 0; });
89
switch (config.state) {
90
case 'fragment':
91
- history.replaceState(null, null, '#' + decodeURIComponent(diff.join('&')));
+ history.replaceState(null, null, window.location.origin + window.location.pathname + window.location.search
92
+ + '#' + decodeURIComponent(diff.join('&')));
93
break;
94
case 'query':
- history.replaceState(null, null, '?' + decodeURIComponent(diff.join('&')));
95
+ history.replaceState(null, null, window.location.origin + window.location.pathname
96
+ + '?' + decodeURIComponent(diff.join('&') + window.location.hash));
97
98
}
99
0 commit comments