1

I updated context-path to my application.properties and favicon.ico is not being shown aafter that.

If I am removing server.context-path=/myApp from application.properties it is working. I wonder if there is a way to define favicon.icon for application with contextpath.

I had favicon.ico in this path: src/main/resources/VAADIN/themes/myApp/

Govan
  • 2,079
  • 4
  • 31
  • 53
  • Please share html code for favicon.ico. – Issam El-atif Jun 15 '17 at 13:06
  • I have never used Vaadin so perhaps this answer is a bit far-fetched as you use the default `favicon.ico` filename, but you can perhaps consider this as a possible workaround. https://stackoverflow.com/questions/25660659/vaadin-how-to-change-favicon/25667111#25667111 – Nico Van Belle Jun 15 '17 at 13:10
  • @IssamEL-ATIF this is the code for favico: – Govan Jun 15 '17 at 13:34

1 Answers1

0

The problem was not adding server.context-path attribute. I changed the pom file adding this code

        <resources>
          <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
        </resource>
    </resources>

The filtering changed the shape of favicon so it was not recognizable.

Govan
  • 2,079
  • 4
  • 31
  • 53