Documentation / zerotal / http / uri
Function: uri()
uri(
value?):Uri
Defined in: packages/core/src/http/Uri.ts:488
Fluent URI helper. Pass a URL string to build from it, or call with no arguments to start from the current request URL.
Parameters
value?
string | Uri
Returns
Example
uri("https://example.com/p?x=1").withQuery({ x: 2 }).value();
uri().withoutQuery(["page"]).value(); // current URL, page param dropped
uri().intended("/dashboard").redirect(); // redirect to the stored intended URL