... tasks? service = & city = 4 & price = & status = & search = specialist = & owner = & petsString = 2 & pets% 5B0% 5D = 2 & sizes% 5B0% 5D = 1 & sizes% 5B1% 5D = 2

Here is an example of part of Url

  • Where are they going back? In PHP, for example, you can get them in the $ _GET array. But what’s JavaScript? - Offer

1 answer 1

//Берем текущий URL const url = new URL(window.location.href); //Обращаемся к нужному параметру let city = url.searchParams.get("сity");