SAPUI5/OpenUI5 Routing without “#” possible?

蹲街弑〆低调 提交于 2020-12-05 19:55:54

问题


I have an application with two routes ("" and "page") with a simple target attached to each (not the same). When I now navigate from the root route "" to "page", the URL in the URL bar of the browser changes to <baseurl>#/page. Also when simply entering <baseurl>#/page in the URL bar of the browser, the proper view is displayed, that was configured via route and target.

Is it possible to configure UI5 - presumably the router - to omit the # in the URL, such that navigation changes the URL to <baseurl>/page and simply entering <baseurl>/page brings me to the corresponding page?

My use case is the following: I want to have an application with OAuth login (implicit grant flow) with a dedicated route/view/controller to handle the callback. The authorization server asks for the callback URL to be configured and forbids the usage of the symbol # in the callback URL, which makes sense as the implicit flow will pass the data back either within the fragement of the URL, which would be appended after the # of my URL violating the URL anatomy.

来源:https://stackoverflow.com/questions/63232562/sapui5-openui5-routing-without-possible

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!