Created
August 27, 2015 22:18
-
-
Save noahub/268c5c2f7598a652f7a8 to your computer and use it in GitHub Desktop.
Redirect with URL parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var yourURL = 'http://www.google.com/'; | |
var newURL = yourURL + location.search; | |
window.location = newURL; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment