-
I have a menu item setup as search so search can be accessed by menu or by module. when you search for an item, the url is https://website.com/search?q=motor and click the link on a search result - its url and itemid is shown as the home page - $itemid=101 = homepage
this means if I have 600 items, with smart search enabled - I also have 600+ home pages
note to self - remember to add |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
I cannot replicate this. With the sample data installed I search for "module" using the module on the home page The results are displayed on /search?q=module I click on the result and the page that is loaded is correctly If I turn off sef urls so I can check the itemid and repeat the same test The results are displayed on /index.php?q=module&option=com_finder&view=search&Itemid=115 I click on the result and the page that is loaded is correctly |
Beta Was this translation helpful? Give feedback.
-
@brianteeman thanks for taking the time to check it out heres some results from a clean install (but only J 4.1.2) clean install
module > search "test" 1st result
2nd result
3rd result
|
Beta Was this translation helpful? Give feedback.
-
That is for the itemid to be used for the search results page. NOT for the links to the items in the search results. Joomla will always use the itemid of the article. This could be a direct menu link or a category menu link etc. If there is no suitable itemid then joomla will always use the itemid of the home item |
Beta Was this translation helpful? Give feedback.
-
in result one above... in result three above... in extended test above... Moral of that story, if you need to improve SEO in Joomla and reduce duplicate content... Now the breadcrumbs, search URL and links will all line up as per your category structure PS: it doesn't fix the home page featured problem, maybe a redirect from |
Beta Was this translation helpful? Give feedback.
-
This is a bug in your sites configuration, not from Joomla. For support questions like this, please go to forum.joomla.org |
Beta Was this translation helpful? Give feedback.
in result one above...
breadcrumbs show
[Home][Uncategorised]test
search URL shows
?view=article&id=1:test&catid=2
neither of these would be correct for SEO as the article is on the home page so should show base domain/ and page content is accessible by different URL's
in result three above...
breadcrumbs show
[Home][cattwo]published art
search URL shows
?view=article&id=8:published-art&catid=8
in extended test above...
menu URL
/list-cattwo/published-art
breadcrumb URL
[Home] [list cattwo] published art
search URL
/list-cattwo/published-art
Moral of that story, if you need to improve SEO in Joomla and reduce duplicate content...
**The menu is what drives your SEF URL's**
setup a new "spa…