Hello,
I am using on Drupal 7, purl module together with view modes to switch between different view display of the same view, keeping the results of the view.
What I notice is that purl appends the query string

?view-mode=XYZ

to every URL in the page. I explain better with an example

  1. I go to my view and filter it with exposed filters
  2. I swith to another display thanks to view modes
  3. I get the query string everywhere in the page
  4. I click to the url of a node listed in the view
  5. URL in browser is: /node/nID?view-mode=XYZ

And the query string persist everywhere in the page. This breaks things like autocomplete text boxes, like tags adding in node edit forms.

So the question now: is it possible to make purl adding the query string ONLY to URLs related to the view? (pager of the view, submit button of exposed filters and so on) and not to all the other URLs that are on the page?

lookin through the purl issues I found this #894430: PURL querystring appending breaks OpenID trust_root and causes OpenID login to fail that mentions

$options['purl']['disabled']

but I don't know where I am supposed to use it.
Any help appreciated

Thanks,
GP

Comments

vintorg’s picture

It looks like several people are having an issue with the query string persisting on other pages on the site. I too only want the query string for my view.

How can I set this to only display the query string on the view I want? If I need to write code, then please let me know where to do this.