Skip to content

Instantly share code, notes, and snippets.

@tomcritchlow
Created February 27, 2012 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomcritchlow/1925426 to your computer and use it in GitHub Desktop.
Save tomcritchlow/1925426 to your computer and use it in GitHub Desktop.
Proof of concept for pushtate + canonical tag
<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