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.
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar