Last active
May 17, 2019 16:48
-
-
Save philbar/7f6366b4af5636d80898 to your computer and use it in GitHub Desktop.
Pass URL Params to Links
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
$(document).ready(function() { | |
var params = window.location.search.replace(/ /g,'%20'); | |
$('.lp-pom-text a').each( function() { | |
this.href = this.href + params; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment