Grails Email Confirmation Plugin Assumes Context Path -
i'm trying use grails email confirmation plugin, application designed run @ root application context. runs @ localhost:8080/
rather @ localhost:8080/appname
. plugin sends confirmation link looks localhost:8080/appname/confirm/ybl4drwapjjf...
. when remove /appname
, link works perfectly.
does know of way either configure plugin not include appname in link or map /appname/confirm/{id}
/confirm/{id}
this isn't favorite solution (see comments in original question).
i added following url mapping...
class urlmappings { static mappings = { ... "/appname/confirm/$id?"(controller: "user", action: "confirm") ... } }
then in user controller, added following method...
@secured(["role_user","role_anonymous"]) def confirm (string id) { redirect(uri: "/confirm/$id") }
Comments
Post a Comment