When a user does a search in CGUserDirectory, click on details for a user and then click the back button to go back to the search results, gets a browser warning asking to confirm reloading the page search form.
There doesn't seem to be a back functionality built into CGUserDirectory detail view, so have does the user gets back to search results without a browser warning?
Back button on CGUserDirectory search gives form warning Topic is solved
Re: Back button on CGUserDirectory search gives form warning
It happens as CGUserDirectory search uses POST in submitting the form. And using the back button gives a warning in the browser.
I've solved it but changing POST to GET in the search template. Maybe not the prettiest solution, but it works for now:
I've solved it but changing POST to GET in the search template. Maybe not the prettiest solution, but it works for now:
Code: Select all
{$formstart|replace:'method="post"':'method="get"'}
