mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-27 00:56:12 +01:00
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:
parent
f9ef8cb3bb
commit
8531f26410
2 changed files with 4 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue