You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the form has been successfully submitted, the visitor will normally get
5
-
redirected to the originating page. You can use the Redirect handler to send
6
-
them elsewhere, instead.
4
+
After the form has been successfully submitted, the visitor will normally get
5
+
redirected to the originating page. You can use the Redirect handler to send
6
+
them elsewhere, instead.
7
7
8
-
You can do this, by setting `redirect:` in the `feedback:` section of the
8
+
You can do this, by setting `redirect:` in the `feedback:` section of the
9
9
form's configuration.
10
10
11
11
@@ -18,19 +18,24 @@ feedback:
18
18
query: [name, email]
19
19
```
20
20
21
-
The `target:` specifies where the visitor will be sent. Note that you can add
22
-
optional get parameters in this URI, that will get sent as-is. For example:
21
+
The `target:` specifies where the visitor will be sent. Note that you can add
22
+
optional get parameters in this URI, that will get sent as-is. For example:
23
23
24
24
```yaml
25
25
target: page/another-page?foo=bar&qux=boo
26
26
```
27
27
28
-
The optional `query:` lets you set additional parameters that will contain the
29
-
corresponding values from the form. For example, the configuration above will redirect the visitor to a URL like this, after a correct form has been posted:
28
+
You can use 'self' as a special case: This will redirect the browser (using a
29
+
GET request) to the originating page. This is useful for when you want the user
30
+
to stay on the same page, without them being able to accidentally re-submit the
31
+
form by refreshing the page.
32
+
33
+
The optional `query:` lets you set additional parameters that will contain the
34
+
corresponding values from the form. For example, the configuration above will redirect the visitor to a URL like this, after a correct form has been posted:
0 commit comments