This PR updates the Smart Search suggestions controller methods to use the application API for setting the document MIME type and sending the response headers instead of the direct PHP method used before.
Testing Instructions
Set up Smart Search, pre- and post- patch the suggestions should work correctly.
I have tested this item successfully during pbf at JUG030, Utrecht.
Pre patch I've created the smart search index and created a smart search menu item. When using the search input field the suggestions were working correctly.
Then I've installed the patch, emptied Joomla cache and browser cache (also made a second test using a different browser). Search field suggestions were working correctly.
After that I removed indexed items form smart search index and re-indexed. Emptied Joomla cache and browser cache again.
Search field suggestions were working correctly.
I have tested this item successfully on 42c4d0a
Successfully got the right data and as a bonus checked in chrome the correct mime type was being returned
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8046.