Google added a section on canonicalization best practices for JavaScript to the JavaScript SEO best practices document.
Navigating directly to a website by typing a URL into your browser comes with the risk of encountering malicious content, too ...