Normally, the urls of the pager of a view are of the format: view-page?page=1, view-page?page=2 and so on... but if this views page is loaded via this module these urls change to view-page?page=1&ajax=1, view-page?page=2&ajax=1 and so on. I am not using ajax in views.

Comments

serjas’s picture

Status: Active » Needs work

Its views module. Views pager appending if any ? or & used in url. I have to find a way to change this behavior.

Any suggestion?

quickly’s picture

I could not resolve this easily, so I used Views Infinite Scroll instead of the pager.

serjas’s picture

Status: Needs work » Needs review

Issue fixed and committed to 7.x-1.x-dev. First please disable this from module config page.

serjas’s picture

Status: Needs review » Closed (fixed)
rahoward’s picture

Version: 7.x-1.7 » 7.x-1.x-dev
Issue summary: View changes
Status: Closed (fixed) » Active

I am having this issue again in the current dev version. I updated due to the issue listed at https://drupal.org/node/1923320, I have scripts removed from the html--ajax.tpl.php and and unchecked the scripts box in the config settings because it was breaking my dropdown menus.

chrislabeard’s picture

My URLs still seem to have the ?ajax=1. Even with the option disabled in the config.

Is it even possible to have ajax enabled on a view? I was trying to use it for sorting.

monstrfolk’s picture

With scripts disabled in html template a page will not reload if the browser page is refreshed when ajax=1 is present in the URL.

I had to modified ajax_links_api.js at line 33.

After line 33 I added

url = url.replace("?ajax=1", "");
url = url.replace("&ajax=1", "");

to remove ajax=1 from the ajax url links.