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.
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión