使用 TYPO3 10 LTS,我在https://example.com/contacts有一个联系表
我使用具有相同 URL https://example.com/contacts的“确认完成程序”以及一些查询字符串和帖子。
当表单成功提交时,我需要另一个特定的 URL,所以我使用了这个路由增强器:
routeEnhancers:
ContactForm:
type: Extbase
extension: Form
plugin: Formframework
routes:
- routePath: '/submit'
_controller: 'FormFrontend::perform'
defaultController: 'FormFrontend::perform'
现在提交表单的 URL 是:https ://example.com/contacts/submit
问题是即使表单有错误(例如:验证码错误)也会出现此 URL,因此它并没有真正完成。
有没有办法只有在表单提交成功时才有特定的 URL?