I want to create an url using:
const click = () => {
router.push(
{
pathname:`/cars?{color}${doors}$`,
},
undefined,
{
shallow: true,
},
);
When i hit the button which trigger the function i get in url: /cars%3Fcolor=red&doors=5
.
How to create this url: /cars?color=red&doors=5
,?