Welcome, Guest
Username: Password: Remember me

TOPIC: Search Module Bug with solution

Search Module Bug with solution 5 years 6 months ago #4411

  • Matt Wilmshorst
  • Matt Wilmshorst's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 2
  • Karma: 0
The Search Module is using get vs post and creates a problem with the SEO components like SEF404.


Changed the search form method to post
<form action="/index.php?option=com_jomclassifieds&amp;view=search&amp;Itemid=147" method="[color=#bb0000]post[/color]" name="jcsSearchForm" class="form-vertical" id="jcsSearchForm" enctype="multipart/form-data">

Then in the model search.php

Around line 49 change : $this->search = JRequest::getVar('search', '', 'get', 'string'); to $this->search = JRequest::getVar('search', '', 'post', 'string');

AND just below around Line 78 change :
$get = JRequest::get('get'); to $get = JRequest::get('post');

Now the search function works right without messing the sef urls up and not putting a bunch of code vars in the URL
The administrator has disabled public write access.

Search Module Bug with solution 5 years 6 months ago #4418

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 3040
  • Thank you received: 353
  • Karma: 46
Thanks for your effort. But if you use POST, the users cannot bookmark their search results. This is the reason why we used GET.

The administrator has disabled public write access.
Time to create page: 0.168 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
Copyright © 2013-2020 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.