Need a return to search results

  • Nina M
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #78388 by Nina M
Need a return to search results was created by Nina M
When you do a search (using the search module obviously) then click on one of the listings in the results, if you then click the browser's back button to go back to the search results you get an error page (in the case of Firefox, it is a Document Expired page). You then have to click the Try again link (Firefox) or the browser refresh button and then request that the information be sent again in order to get the search results back. This is not good. There should be some way to easily get back to the search results, possibly a link on the listing page which, when clicked, will take you back to the results. Is there any way of easily implementing this?

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #84904 by JPPAUL
Replied by JPPAUL on topic Need a return to search results
Same thing is happening to me. Not good at all. Perhaps this is something with the credentials? But It happens to guests who aren't logged in so I don't get it at all. I agree it's a very serious issue. It pops erratically, making it even harder to solve.

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #85131 by Iain
Replied by Iain on topic Need a return to search results
I too have this on my wish list
Nearly all sites with search nowadays have a 'return to search results' link/button

This gets a BIG vote from me to see this please

Please Log in or Create an account to join the conversation.

  • Nina M
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #85138 by Nina M
Replied by Nina M on topic Need a return to search results
My solution in the end was to change "post" to "get" in the search form.

The file you need to change is:
/modules/mod_ospropertysearch/tmpl/default.php

Find the line:
<form method="POST" action="<?php echo JRoute::_('index.php?option=com_osproperty&view=ladvsearch&Itemid='.$itemid)?>" name="ossearchForm<?php echo $random_id?>" id="ossearchForm<?php echo $random_id?>">
and change "POST" to "get"

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #85150 by JPPAUL
Replied by JPPAUL on topic Need a return to search results
That worked fine for me. Thanks very much NIna!!

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago #86097 by Mr. Dam
Replied by Mr. Dam on topic Need a return to search results
Hi,
To solve this kind of problem, we have 2 solutions.
1. Using OSP Navigation plugin. This plugin provide the links to next and previous properties in Search result, it also provide the link back to Search results.
2. Install and publish the plugin attachment.
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam