我已经定义了以下路线文件的URL摆脱了最初的HTML页面:发挥framework2:获得
GET / controllers.Application.app
# web service entries...
GET /api/users controllers.Users.list
[...]
# Map static resources from the /public folder to the /assets URL path
GET /*file controllers.Assets.at(path="/public", file)
,在我Application.app行动我只是重定向到index.html的
def app = Action {
Redirect(routes.Assets.at("index.html"))
}
所以当我在http://mydomain
访问我的申请,我重定向到http://mydoamin/index.html
,然后添加/#想法的位置(这是一个单一的网页应用程序)
我想摆脱index.html文件,而是被重定向到http://mydoamin/#ideas
是否有可能?
是的,你是对的:-)这是如此简单,我没有考虑它;-) –
小菜一碟,谢谢! – opensas