Play Framework - Get current controller path programmatically

February 19, 2016

Problem:

Get the current path from the inside the controller method

Solution:

<![CDATA[ play.mvc.Http.Context.Implicit.request().path() ]]>
SyntaxHighlighter.highlight();