dee
03/20/2024, 11:35 AMtylervz
03/20/2024, 3:38 PMsrc/main/resources/public directory. For example, the file src/main/resources/public/images/favicon.ico is accessible by navigating to the URL http://localhost:8080/static/images/favicon.ico when your Grails app is running.
If you use Grails Spring Security plugin, make sure that you have a rule to permitAll access to everything under the `/static/ path.
- pattern: "/static/**"
access: ["permitAll"]
I can't remember when that change took place, but I know it is that way for Grails 5 too.dee
03/20/2024, 9:00 PMgrails:
resources:
pattern: "/**"
However now I need to sort out how to auto redirect to index.html, because currently I have to hit url like http://localhost:8080/test/index.html, but ideally we would want http://localhost:8080/test.