Back button on CGUserDirectory search gives form warning Topic is solved

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Back button on CGUserDirectory search gives form warning

Post by webform »

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?
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Re: Back button on CGUserDirectory search gives form warning

Post by webform »

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:

Code: Select all

{$formstart|replace:'method="post"':'method="get"'}
Post Reply

Return to “Modules/Add-Ons”