I am trying to figure out how to do a redirect within a controller action in Play (2.0) using Scala.
The redirect using
Redirect(routes.Application.index
You can also avoid creating another function just for this in your controller. In your route config, you can simply add something like this:
GET /google @controllers.Default.redirect(to = "http://google.com")