Skip to content

Commit

Permalink
Pass along query parameters when performing the datatable ajax request (
Browse files Browse the repository at this point in the history
  • Loading branch information
dovereem committed Jul 3, 2023
1 parent 8863069 commit 031d134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/public/js/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$.fn.initDataTables = function(config, options) {

//Update default used url, so it reflects the current location (useful on single side apps)
$.fn.initDataTables.defaults.url = window.location.origin + window.location.pathname;
$.fn.initDataTables.defaults.url = window.location.origin + window.location.pathname + window.location.search;

var root = this,
config = $.extend({}, $.fn.initDataTables.defaults, config),
Expand Down

0 comments on commit 031d134

Please sign in to comment.