A query string is the part of a URL that includes field-value pairs. Here we are going to remove query string from URL using JavaScript. There are number of benefits of clean URL. Clean URL always looks better and prevent user to see if you are tracking where they came from. It is helpful for security reasons.
Why remove query strings?
Main two reasons for this.
- 1. Clear URL alwaya look better than the long URL
- 2. When you are not remove your query string from URL. then all get variable show in you URL string. sometime it not good for a security
You can remove your query string using this simple Jquery code.
...
...