Jump to content

simple search result page & menu id


Neal Afifi

Recommended Posts

i have created page with Jreviews listing page with this url

http://localhost/workspace/reviewzat/ar/products/phones

and when i do search for first time it redirect well to the same page with this url

http://localhost/workspace/reviewzat/ar/products/phones/search-results?dir=2&cat=33&keywords=nokia

but when i do search again it takes me to different page

http://localhost/workspace/reviewzat/ar/component/jreviews/search-results/?dir=2&cat=33&keywords=nokia

 

Notice:

i am setting "Use current page Itemid for search results" to Yes

& "Specify a menu id for search results" is empty

when i inspcet the form containing the search input in the second search i found this <input type="hidden" name="data[menu_id]" value="">

also when i disable SEF from Joomla global configuration it works well because "Itemid" parameter is exist in the url

i can solve it in the module by this :

if(!$search_itemid){

    $search_itemid = JRequest::getVar('Itemid');

}

 

but the paging & filters is having the wrong URL

 

so how this can be solved with using SEO of Joomla 3

Link to comment
  • 2 weeks later...
×
×
  • Create New...