Hi,
I am using https://viewcomponent.org/ and I am handling redirects for forms using stimulus doing the following:
async turboSubmit(event) {
const { success } = event.detail
if (success && this.redirectValue) {
Turbo.visit(this.redirectValue)
} else {
this.enableSubmit()
}
}
But it currently throws this error Error: Form responses must redirect to another location, which is due to the following code
|
const error = new Error("Form responses must redirect to another location") |
, is there a reason this is needed?
Cheers!
Hi,
I am using https://viewcomponent.org/ and I am handling redirects for forms using stimulus doing the following:
But it currently throws this error
Error: Form responses must redirect to another location, which is due to the following codeturbo/src/core/drive/form_submission.ts
Line 103 in aae160b
Cheers!