I was looking at this example in the section “Assign static args”
http://www.playframework.org/documentation/1.2.4/routes
but it makes no sense as they call render(page) instead of render(id). Maybe it is not a good example for my use case……
I have the following route…
GET {company}.${envDomain}/dashboard Dashboard.dashboardPage
but I get an error that says the following path is not found:
GET {company}.dev.xxxxxxx.com/dashboard
The interesting thing is that it says "GET /dashboard" is not found and in my url I see a http://dev.xxxx.com/dashboard INSTEAD of the {company}.dev.xxxx.com/dashboard that should be there….
Why is route reversal not working?
My source code for dashboardPage is such.
public static voi
This is possible via a feature implemented in Play 1.1 (Virtual Hosts).
Just ensure that when you do reverse routing you are using
'@@{}'instead of'@{}', as the example shows.