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
add ability for redirects to preserve the querystring and hash
when the requested URL is redirected, as the result of:
config.redirects
preserve the querystring and hash, conditional to:
config.redirects[index].preserveQuery
config.redirects[index].preserveHash
when the requested URL is redirected, as the result of either:
config.cleanUrls
config.trailingSlash
preserve the querystring and hash, without condition
based on:
* upstream PR 154
vercel/serve-handler#154
* upstream PR 144
vercel/serve-handler#144
Copy file name to clipboardExpand all lines: lib/serve-handler/README.md
+10
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,16 @@ In the example above, `/old-docs/12` would be forwarded to `/new-docs/12` with s
168
168
169
169
**NOTE:** The paths can contain globs (matched using [minimatch](https://github.com/isaacs/minimatch)) or regular expressions (match using [path-to-regexp](https://github.com/pillarjs/path-to-regexp)).
170
170
171
+
By default, the querystring and hash are not preserved by the redirect. The following boolean attributes enable this behavior:
0 commit comments