Skip to content
Advertisement

How to delete multiple url params

There is a problem with deleting several string parameters. Only the last parameter is being deleted now.

upd: I did not specify that I wanted to achieve the ability to remove specific parameter values

this code does not work correctly:

JavaScript

Sandbox

Advertisement

Answer

Solved the problem by modifying the function like this

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement