我正在尝试读取带有#params的完整URL。如何在游戏控制器中阅读?我能够读取查询参数,但不能读取路由指令
https://x.app.com/callback#x=1
Action.async{ implicit request => val fullUrl = ??? //Read full url of request }
我尝试了request.uri和request.path。两者都没有帮助。
response of request.uri => /callback response of request.path => /callback
响应中没有参数。
您可以使用:
request.path
或
request.uri
您不能将片段(#part)传递给服务器,它只是浏览器。改用查询参数