const pages = getCurrentPages()
const currentPage = pages[pages.length - 1]
const url = currentPage.route
const options = currentPage.options
let urlargs = `/${url}?`
for (let key in options) {
const value = options[key]
urlargs += `${key}=${value}&`
}
urlargs = urlargs .substring(0, urlargs .length - 1)