Skip to content

Commit 2897e9c

Browse files
committed
redirect() accepts struct for queryString
1 parent 6b7c1dd commit 2897e9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/documentation/3.5/reference-manual.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: page
33
title: "FW/1 Reference Manual"
4-
date: 2015-09-22 12:30
4+
date: 2015-10-16 02:40
55
comments: false
66
sharing: false
77
footer: true
@@ -431,7 +431,7 @@ Given a `path`, and an array of `routes`, and an optional `httpMethod`, process
431431

432432
### public void function redirect( string action, string preserve = "none", string append = "none", string path = _see below_, string queryString = '', string statusCode = '302', string header = '' )
433433

434-
This constructs a URL based on the `action` and optional `path` and redirects to it. If `preserve` is `"all"`, the entire contents of the request context are saved to `session` scope across the redirect (and restored back to the request context automatically after the redirect). If `preserve` is a list of keys, just those elements of the request context are preserved. If `append` is `"all"`, all simple values in the request context are appended to the constructed URL as a query string before the redirect. If `append` is a list of keys, just those elements of the request context are appended (if they are simple values). The `statusCode` argument lets you specify the HTTP status code for the redirect so you can override the default value of `302`.
434+
This constructs a URL based on the `action` and optional `path` and redirects to it. If `preserve` is `"all"`, the entire contents of the request context are saved to `session` scope across the redirect (and restored back to the request context automatically after the redirect). If `preserve` is a list of keys, just those elements of the request context are preserved. If `append` is `"all"`, all simple values in the request context are appended to the constructed URL as a query string before the redirect. If `append` is a list of keys, just those elements of the request context are appended (if they are simple values). The `statusCode` argument lets you specify the HTTP status code for the redirect so you can override the default value of `302`. As of release 3.5 `queryString` also accepts a structure, which is converted to an HTML escaped query string.
435435

436436
If `path` is specified, that base URL is used instead of the default, as per `buildURL()` above.
437437

0 commit comments

Comments
 (0)