Created
February 27, 2012 16:54
-
-
Save tomcritchlow/1925426 to your computer and use it in GitHub Desktop.
Proof of concept for pushtate + canonical tag
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> | |
$(document).ready(function() { | |
if (canonical = $('link[rel=canonical]').attr('href')) | |
history.replaceState('', '', canonical); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment