Q:

Handle hashmark in Play 2.0 routes.conf

I've to manage that kind of URL:
http://localhost:9000/oauth2callback#state=/&access_token=ya29.....

My Play 2.0's routes.conf looks like this: 
GET     /oauth2callback             controllers.Application.testGoogleCallback(access_token: Option[String])

Unfortunately, it looks like the #state=/ part of the URL makes the access_token param of the testGoogleCallback action being not filled in (but the rule matches and the action is well called).
Following URL works as aspected, and I correctly get the access_token param in the Action.
http://localhost:9000/oauth2callback?access_token=ya29.....

Any idea on how to specify that a fragment identifier is part of the URL in the routes.conf file?
Thx in advance
RP

A:

The hashmark is interpreted by the browser as a local anchor, and is not sent to the server. This is not a playframework specific problem, but part of the URI spec. 
Is there any specific reason why you need it to be a hashmark? Your URL that works is valid HTML syntax, which is what I would expect to see!?

