Fixed canonical URLs.

they will now work correctly on (for example) profile pages.
Merge pull request #4665 from guardian/canonical-profile

Fixed canonical URLs.