[SOLVED] Get url params from Get Request

Hi! Is it possible to retrieve the parameters passed in url by a GET request?
For example: I want to load the contents of a page whose url is: “/post/:id=${post.data[i].id”
how to dynamically detect the value of “id” passed in url?

If it is a componentUrl page then you can access route params as

this.$route.params

Otherwise, if you use page callbacks, then it will be available as pageData.route.params, e.g.

$$(‘some-page’).on(‘page:init’, function(e, page) {
console.log(page.route.params.id);
})

Thanks You:clap::clap: It’s Work