I have Joomla 3.9.21 which has SEF URL's enabled.

All works perfectly, except for the search results page.

For example, this is the SEO link to an article (which is assigned a menu option whose root option is called "proyectos"):


So far, so good. However, when I do a search where that article is on the results, the link of the article is this:


How can I get rid of the component/content/article part and replace it by the menu option the article is assigned to? In this case, root menu option is called "proyectos".

If I disable SEF, I realized that this URL is for the menu option that is assigned to the article:


And when searching, this is the actual URL for that article on the results page:


Maybe the Itemid=101 part is interfering. Itemid 101 is the home menu item. This ID is strange. For some reason, com_search module is not finding the Itemid associated to the article, 160 in this case.


1 Answer 1


I found out that the problem is about the language. I have menu and articles with Spanish language. Only Home menu item is for All languages.

I changed the article menu item for All languages, and it worked. The right Itemid is being retrieved now.

Is this a bug or is there some workaround when working with site languages?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.