window.location.href get parameters
Removing query-string from url after other functions. What is the proper way of getting this one? Also, is using window. location.assign(), the proper way for adding the parameters to the URL?You can simply do it with window.location.