Skip to content

Commit 9020076

Browse files
committed
Fix context policy
1 parent 0b4bda5 commit 9020076

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/content/docs/cloudflare-one/policies/gateway/block-page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ To create an HTTP policy to redirect URLs, refer to the [Redirect action](/cloud
5353

5454
Paths and queries in the redirect URL take precedence over the original URL. When you turn on **Send policy context**, Gateway will append context to the end of the redirected URL. For example, if the original URL is `example.com/path/to/page?querystring=X&k=1` and the redirect URL is `cloudflare.com/redirect-path?querystring=Y`, Gateway will redirect requests to:
5555

56-
```txt ins="&user_email[email protected]"
57-
cloudflare.com/redirect-path?querystring=Y&user_email[email protected]
56+
```txt ins="&cf_user_email[email protected]"
57+
cloudflare.com/redirect-path?querystring=Y&cf_user_email[email protected]
5858
```
5959

6060
### Customize the block page

src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ cloudflare.com/redirect-path/path/to/page?querystring=Y
145145

146146
When you turn on both options, Gateway will preserve the original path and query string, then append policy context to the end of the redirect URL. For example, if the original URL is `example.com/path/to/page?querystring=X&k=1` and the redirect URL is `cloudflare.com/redirect-path?querystring=Y`, Gateway will redirect requests to:
147147

148-
```txt "cloudflare.com/redirect-path" "?querystring=Y" ins="&user_email[email protected]"
149-
cloudflare.com/redirect-path/path/to/page?querystring=Y&k=1&user_email[email protected]
148+
```txt "cloudflare.com/redirect-path" "?querystring=Y" ins="&cf_user_email[email protected]"
149+
cloudflare.com/redirect-path/path/to/page?querystring=Y&k=1&cf_user_email[email protected]
150150
```
151151

152152
### Isolate

0 commit comments

Comments
 (0)