Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready( function() { //seo experiment
- var c = $('head link[rel="canonical"]:first'); //get the link element
- var h = c.attr('href'); // get the href value
- if (typeof(h) == "undefined"){ return false; } // error checking
- var i = h.indexOf('?page'); //check to see if "?page" is in the href value
- if (i > -1){ // if it is then
- c.attr('href',h.substring(0,i)); // remove everything up to the "?page" and reset the link attr
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement