OpenTechStrategies / streetcrm

StreetCRM is a free software contact management application
Other
5 stars 4 forks source link

Advanced search results don't work with browser "back" button #330

Open cecilia-donnelly opened 7 years ago

cecilia-donnelly commented 7 years ago

When a user clicks on one of the advanced search results in Firefox then clicks "Back" to return to the list of results, they see a "Document Expired" page. At least one user reports that the "Back" button works as expected in Safari. @pjsier mentioned that he thinks he knows what is causing this.

pjsier commented 7 years ago

I'll take a closer look into this, but I'm guessing it has something to do with it being a POST request so clicking "Back" is giving one of those "are you sure you want to resubmit this information" warnings. Not sure if browser behavior changed on this, or if there's just something off about the implementation, but it seems like one way we could address it is have the form redirect to a GET request which renders the results and potentially include URL query args on that for the filter parameters

cecilia-donnelly commented 7 years ago

@pjsier will look into why this is happening, and then we'll have a better sense of whether it's a good idea to use a GET request instead. There may be security implications to using GET instead of POST in this query.