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:
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.