Title: Can we remove querystring on close?
Last modified: September 1, 2016

---

# Can we remove querystring on close?

 *  [toddryks](https://wordpress.org/support/users/toddryks/)
 * (@toddryks)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/can-we-remove-querystring-on-close/)
 * When a popup opens it adds the #spu-xxxx to the querystring. Is there a way to
   remove that when the popup is closed?
 * [https://wordpress.org/plugins/popups/](https://wordpress.org/plugins/popups/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/can-we-remove-querystring-on-close/#post-7481423)
 * How are you opening the popup? It should be any query string… It’s probably some
   script of your theme adding that to the url.
 *  Thread Starter [toddryks](https://wordpress.org/support/users/toddryks/)
 * (@toddryks)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/can-we-remove-querystring-on-close/#post-7481424)
 * We’re using text links:
    `<a href="?locid=96&location=Mankato, MN#spu-1888">Mankato,
   MN</a>` The “locid” goes into a hidden form field and “location” gets displayed
   in the form. Actual page: [http://www.tradehome.com/job/sales-associate-positions/](http://www.tradehome.com/job/sales-associate-positions/)
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/can-we-remove-querystring-on-close/#post-7481431)
 * There is no way actually on the plugin but you could tell your developer to attach
   to the close event of the popup and then use a solution like this: [http://stackoverflow.com/questions/1397329/how-to-remove-the-hash-from-window-location-with-javascript-without-page-refresh/5298684#5298684](http://stackoverflow.com/questions/1397329/how-to-remove-the-hash-from-window-location-with-javascript-without-page-refresh/5298684#5298684)
 * Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can we remove querystring on close?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/popups_efeef0.svg)
 * [Popups - WordPress Popup](https://wordpress.org/plugins/popups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups/)
 * [Active Topics](https://wordpress.org/support/plugin/popups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Damian](https://wordpress.org/support/users/timersys/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/can-we-remove-querystring-on-close/#post-7481431)
 * Status: not resolved