Skip to content

Commit 4ba52d7

Browse files
committed
docs: clarify redirect function in http.ts usage
1 parent 3f188cd commit 4ba52d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/http.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ export const relativeRoot = (req: express.Request): string => {
100100
}
101101

102102
/**
103-
* Redirect relatively to `/${to}`. Query variables will be preserved.
103+
* Redirect relatively to `/${to}`. Query variables on the current URI will be preserved.
104+
* `to` should be a simple path without any query parameters
104105
* `override` will merge with the existing query (use `undefined` to unset).
105106
*/
106107
export const redirect = (

0 commit comments

Comments
 (0)