Hello all,
While migrating JSP code on Liferay 2025 LTS (Q1.1.16), I ran into a documentation mismatch with the liferay-frontend:logo-selector tag.
According to this:
https://learn.liferay.com/l/33610036
It states:
currentLogoURL → This parameter was renamed to logoURL
However, in 2025 LTS (Q1.1.16), using logoURL causes a JSP compilation failure.
Code that fails
<liferay-frontend:logo-selector
defaultLogoURL="<%= UserConstants.getPortraitURL(themeDisplay.getPathImage(), user.isMale(), 0, null) %>"
logoURL="<%= user.getPortraitURL(themeDisplay) %>"
/>
Error
Attribute [logoURL] invalid for tag [logo-selector] according to TLD
JasperException is thrown during JSP compilation, indicating that logoURL is not defined in the TLD for liferay-frontend:logo-selector.
Working code
<liferay-frontend:logo-selector
defaultLogoURL="<%= UserConstants.getPortraitURL(themeDisplay.getPathImage(), user.isMale(), 0, null) %>"
currentLogoURL="<%= user.getPortraitURL(themeDisplay) %>"
/>
This works correctly on Liferay 2025 LTS (Q1.1.16).
Observation
-
The TLD still expects
currentLogoURL -
logoURLis not recognized by the taglib in 2025 LTS -
The Learn documentation appears to be incorrect or not applicable for this version
Thanks.