Fórum

Broken icon's path in navigation.

Víctor Martínez-Barquero Teruelo, modificado 7 Anos atrás.

Broken icon's path in navigation.

New Member Postagens: 5 Data de Entrada: 29/01/15 Postagens Recentes
Hello everyone,

I have just started developing with Liferay DXP and I think I have found a problem with the navigation icons.
As you already know, the NavItem Interface has changed and the method icon has been removed.
I've uploaded an icon in the advance section of my public pages. I have used the new method iconURL to retrieve them in my navigation template and this is what is happening:
  • This is my navigation.ftl code

<img src="${nav_item.iconURL()}" alt="${nav_item.getName()}" title="${nav_item.getName()}">

  • and this is the code rendered in the browser inspector:

<img src="/image/layout_icon?img_id41508&amp;t=1487600540781" alt="alternative_text" title="title">


If I open the link in a new tab the result is a broken link.

http://localhost:8080/image/layout_icon?img_id41508&t=1487600540781

but I have realized that there is a "missing equals symbol" between the parameter img_id and its value.

http://localhost:8080/image/layout_icon?img_id=41508&t=1487600540781

If you put the equals, the path is ok and you can reach the symbol without any problem.

I don't know if anyone has faced this problem before or if there is something that I'm missing. I haven't found any bug reporting this either.

Thanks for your time.

Víctor.
thumbnail
Srikanth Reddy Sanivarapu, modificado 6 Anos atrás.

RE: Broken icon's path in navigation.

Regular Member Postagens: 203 Data de Entrada: 15/11/08 Postagens Recentes
Even I am facing the same issue on Liferay SP4 DXP. Why Liferay is not focusing on these kind of issues. Did you find a fix for this? Thanks.
thumbnail
Olaf Kock, modificado 6 Anos atrás.

RE: Broken icon's path in navigation.

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
Srikanth Reddy Sanivarapu:
Even I am facing the same issue on Liferay SP4 DXP. Why Liferay is not focusing on these kind of issues. Did you find a fix for this? Thanks.


I guess it take to be known by Liferay support - a forum post like this scrolls by quickly. I'd recommend to file an issue and point to this entry. After all, the ability to file an issue and get it fixed is what you have a supported version (DXP) for.