Created
October 8, 2015 20:22
-
-
Save noahub/0c05921a70b71b016274 to your computer and use it in GitHub Desktop.
Append incoming parameters to text links on page
This file contains hidden or 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
//The following script can be placed in the javascripts section of your page with placement 'Before Body End Tag' | |
<script> | |
$(function() { | |
$('.lp-pom-text a').not('a[href^=#]').each( function() { | |
this.href = this.href + window.location.search; | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment