Any ideas how to get the current URL with the play framework?
I'm also looking for the full target URL. I know I can use @{Controller.method}
but I need the full url (for the Facebook like button)
Asked
Active
Viewed 6,051 times
6
2 Answers
10
An absolute path is created using @@
So, you would use
@@{Controller.method}
However, to get the current path, without specifying a specific controller and action, you can use
${request.url}

Codemwnci
- 54,176
- 10
- 96
- 129