Should the themeDisplay.getCanonicalURL() function return a canonical URL on a HTML page?

Issue

  • When a custom canonical URL is configured on a HTML page, running themeDisplay.getCanonicalURL() in the browser console returns the friendly URL instead.

Environment

  • Analytics Cloud

Resolution

  • The getCanonicalUrl function is defined here.

  • This method is not expected to read the URL from the HTML page. It utilizes the page’s friendly URL along with the SEO settings on the page itself and the SEO settings in System Settings.

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助