Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Update the URL that appears in the address bar to display the canonical URL
- <script>
- $(document).ready(function() {
- if (canonical = $('link[rel=canonical]').attr('href'))
- history.replaceState('', '', canonical);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement