By default, Drupal will insert a <link rel="canonical"> tag in the head of each page on your site. The problem is Drupal inserts a relative URL rather than a more helpful absolute path. The other issue, is if you have a mobile version of the site, you need to account for that too.
Remove default Drupal canonical tag. Add this code to template.php: