Skip to content

Change favicon default StaticResourceLocation #23126

@wimdeblauwe

Description

@wimdeblauwe

Currently, in org.springframework.boot.autoconfigure.security.StaticResourceLocation, there is only favicon.ico support. Given that favicons can be SVG images now as well, it might be good to add support for those?

I believe just changing:

FAVICON("/**/favicon.ico");

to

FAVICON("/**/favicon.ico", "/**/favicon.svg");

should be enough?

(Note sure why there is /** in there. Aren't favicons located at the root always?)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions