Full destination / current url within the game?

Any ideas on how to get the current url using the playback platform? I am also looking for the full destination URL. I know I can use @{Controller.method} , but I need a full url (for a button on Facebook)

+6
source share
2 answers

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} 
+10
source

In Play 2.0, he

 @request.path 

(more info here )

+7
source

Source: https://habr.com/ru/post/897093/


All Articles