No Code Attached Yet
avatar QuotesUK
QuotesUK
18 Dec 2023

Steps to reproduce the issue

Download and unpack Joomla_5.0.1-Stable-Full_Package.zip
Open robots.txt.dist

Expected result

Disallow: /component/

Actual result

not listed

System information (as much as possible)

Joomla 5.0.1

Additional comments

/components/ is already listed, this matches the installed directory
Smart Search uses a path of domain.tld/component/finder/search?q=needle
/component/ needs to be added to exclude Smart Search results

avatar QuotesUK QuotesUK - open - 18 Dec 2023
avatar joomla-cms-bot joomla-cms-bot - change - 18 Dec 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Dec 2023
avatar brianteeman
brianteeman - comment - 18 Dec 2023

This would not be the correct fix as it would also include any other urls with /component/

The correct fix is for you to create a menu item for the smart search component (it does not have to be a visible menu item)

avatar richard67 richard67 - close - 18 Dec 2023
avatar richard67 richard67 - change - 18 Dec 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-12-18 20:28:05
Closed_By richard67
avatar richard67
richard67 - comment - 18 Dec 2023

Yes, and for that menu item you can set the noindex nofollow directive in the menu item parameters.

Closing as expected behavior.

Add a Comment

Login with GitHub to post a comment