Skip to content
Snippets Groups Projects

3184863: Remove page from the querystring when merging url get params with ajax call

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -44,7 +44,8 @@
var queryString = window.location.search || '';
if (queryString !== '') {
// Remove the question mark and Drupal path component if any.
var queryString = queryString.slice(1).replace(/q=[^&]+&?|&?render=[^&]+/, '');
queryString = queryString.slice(1).replace(/q=[^&]+&?|&?render=[^&]+/, '');
queryString = queryString.slice(1).replace(/q=[^&]+&?|&?page=[^&]+/, '');
if (queryString !== '') {
// If there is a '?' in ajax_path, clean url are on and & should be
// used to add parameters.
Loading