Tuesday 15 January 2013

grails - Redirect / in to a static page in UrlMappings.groovy -



grails - Redirect / in to a static page in UrlMappings.groovy -

i have grails 2.3.11 application has static html page load js web ui developed in extjs.

i wanted load static index page default using redirect in urlmapping.groovy this:

"/"(redirect: '/static/app/index.html')

this particular redirect not work. empty page opened instead.

a few other redirects work properly.

shall in general possible have redirect "/"?

you can rename index.html index.gsp , have next in urlmappings

"/"(view: '/static/app/index.gsp')

grails url-mapping grails-2.3

No comments:

Post a Comment