From aeeb9e770b08a55f10dbf8034efcfecbec0080f4 Mon Sep 17 00:00:00 2001
From: Oliver Bartsch <bo@cedev.de>
Date: Mon, 15 Apr 2024 18:24:17 +0200
Subject: [PATCH] [BUGFIX] Keep search word on switching search mode

The search word is now properly kept on
switching between advanced and normal
search mode in EXT:indexed_search.

Resolves: #103633
Releases: main, 12.4
Change-Id: Ic694e40da3a7bdeee3d76be2402fd4bf8e150e3c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83792
Tested-by: Oliver Bartsch <bo@cedev.de>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
---
 .../indexed_search/Resources/Private/Partials/Form.html       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/indexed_search/Resources/Private/Partials/Form.html b/typo3/sysext/indexed_search/Resources/Private/Partials/Form.html
index c1c6426756f7..7311e5a63e04 100644
--- a/typo3/sysext/indexed_search/Resources/Private/Partials/Form.html
+++ b/typo3/sysext/indexed_search/Resources/Private/Partials/Form.html
@@ -88,10 +88,10 @@
             <p>
             <f:if condition="{searchParams.extendedSearch}">
                 <f:then>
-                    <f:link.action action="form" arguments="{search: {extendedSearch: 0}}"><f:translate key="form.linkToRegularSearch" /></f:link.action>
+                    <f:link.action action="form" arguments="{search: {sword: sword, extendedSearch: 0}}"><f:translate key="form.linkToRegularSearch" /></f:link.action>
                 </f:then>
                 <f:else>
-                    <f:link.action action="form" arguments="{search: {extendedSearch: 1}}"><f:translate key="form.linkToAdvancedSearch" /></f:link.action>
+                    <f:link.action action="form" arguments="{search: {sword: sword, extendedSearch: 1}}"><f:translate key="form.linkToAdvancedSearch" /></f:link.action>
                 </f:else>
             </f:if>
             </p>
-- 
GitLab