strip-fetch-query-parameter
The strip-fetch-query-parameter
strips a query string parameter from fetch()
calls.
You can use this snippet to remove parameters from fetch
calls that mach a urlPattern
, if provided. If urlPattern
isn't provided, the parameter gets stripped from all fetch
calls.
Parameters
Name | Description | Mandatory |
---|---|---|
name | The parameter's name. | Yes |
| An optional pattern that the URL must match. If the string begins and ends with a slash (/), the text in between is treated as a regular expression. | No |
Filter examples
The following table lists examples that use the strip-fetch-query-parameter
snippet:
Filter | Result |
---|---|
| Strips the |
| Strips the |
Last updated