Search.../

query

Returns the query fields and values of the request URL.

Description

Premium sites: Premium site query

Free sites: Free site query

Note: The above URLs are for a published site. When previewing your site, you will receive the Editor URL.

Type:

ObjectRead Only

Was this helpful?

Get the query of the router request's URL

Copy Code
1export function myRouter_Router(request) {
2
3 let query = request.query;
4 // {"species": "african-elephant"}
5}