File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ List the parameters that you would like to have _remain_ in the URL. All other q
19
19
20
20
```
21
21
import querymodifier;
22
+
22
23
set req.url = querymodifier.modifyparams(url=req.url, params="search,id", exclude_params=false);
24
+ # Or use the convenience function, `includeparams`.
25
+ set req.url = querymodifier.includeparams(url=req.url, params="search,id");
23
26
24
27
# Original URL: example.com/?search=name&ts=123456789&id=987654321
25
28
# Modified URL: example.com/?search=name&id=987654321
@@ -31,7 +34,10 @@ List the parameters that you would like to have _removed_ from the URL. All othe
31
34
32
35
```
33
36
import querymodifier;
37
+
34
38
set req.url = querymodifier.modifyparams(url=req.url, params="ts,v", exclude_params=true);
39
+ # Or use the convenience function, `excludeparams`.
40
+ set req.url = querymodifier.excludparams(url=req.url, params="ts,v");
35
41
36
42
# Original URL: example.com/?search=name&ts=123456789&v=123456789&id=987654321
37
43
# Modified URL: example.com/?search=name&id=987654321
You can’t perform that action at this time.
0 commit comments