RedirectFinisher¶
Redirects to specified page after successful form submission.
TypoScript Path |
plugin.tx_formhandler_form.settings.predefinedForms.[x].finishers |
Example Code:
finishers {
Redirect {
model = RedirectFinisher
config {
returns = true
correctRedirectUrl = false
additionalParams {
postal_code = 1.customer.postalCode
queryParam2 = valueIfNotFoundAsFieldName
}
}
}
}
Properties
additionalParams |
Add additional parameters to the redirect URL. Each parameter can be a string |
Mandatory |
False |
Data Type |
Array<String, String|Field name path> |
Default |
Empty |
Note |
The key String of Array<String, String|Field name path> will also be used as the parameter name. |
correctRedirectUrl |
Replaces “&” with “&” in URL |
Mandatory |
False |
Data Type |
Boolean |
Default |
False |
headerStatusCode |
Set a custom header code set when redirecting to another page. |
Mandatory |
False |
Data Type |
Integer |
Default |
303 |
returns |
Tells the controller that after this Finishers, no other Finishers can be called! |
Mandatory |
True |
Data Type |
Boolean |
Note |
MUST be set to True otherwise the redirect can’t be send to the browser. |