BUGFIX: Keep default action non cacheable

Otherwise user input is saved and re displayed to foreign visitors.

If someone is in need for an cached version, he can create a plugin
inside his sitepackage with a different plugin signature but same
action.

If that does not work, we might add another action for caching.

Also keep old action name to be non breaking.
This commit is contained in:
Daniel Siepmann 2018-12-27 11:56:02 +01:00
parent f9ef8cb3bb
commit 8531f26410
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 4 additions and 3 deletions

View file

@ -48,7 +48,7 @@ class SearchController extends ActionController
/**
* Allow dynamic properties in search request
*/
public function initializeResultsAction()
public function initializeSearchAction()
{
if (isset($this->settings['searching']['mode'])
&& $this->settings['searching']['mode'] === 'filter'
@ -69,7 +69,7 @@ class SearchController extends ActionController
/**
* Display results and deliver original request and result to view.
*/
public function resultsAction(SearchRequest $searchRequest = null)
public function searchAction(SearchRequest $searchRequest = null)
{
$searchResult = null;
if ($searchRequest !== null) {

View file

@ -46,7 +46,8 @@ call_user_func(function ($extension, $configuration) {
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Codappix.' . $extension,
'Search',
['Search' => 'results']
['Search' => 'search'],
['Search' => 'search']
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(