Grails

g:javascript tag causes exception if no controller in url