on 06-09-2021 2:58 PM
Hi experts,
I have a problem that slash is automatically added to the url every time I refresh the browser.
The original url is :
https://XXXX.cpp.cfapps.jp10.hana.ondemand.com/site#salesprice-maintain?sap-ui-app-id-hint=saas_appr...&/detail/SalesPriceImport(guid'02291fcf-7d06-47af-98d1-ab34df51cf07')
Every time I refresh the browser , slash ('/') is automatically added to the pattern part of detail route.
After I refresh the browser two times, the url will be :
https://XXXX.cpp.cfapps.jp10.hana.ondemand.com/site#salesprice-maintain?sap-ui-app-id-hint=saas_appr...&///detail/SalesPriceImport(guid'02291fcf-7d06-47af-98d1-ab34df51cf07')
Weird part : (&///detail/)
And the Page will not show correctlly because the url does not follow the rules of SAPUI5 Route.
configuration of routes in manifest.json:
"routing": {
"config": {
"routerClass": "sap.m.routing.Router",
"viewType": "XML",
"async": true,
"viewPath": "SD.salespricemaintain.view",
"controlAggregation": "pages",
"controlId": "app",
"clearControlAggregation": false
},
"routes": [{
"name": "List",
"pattern": "",
"titleTarget": "",
"greedy": false,
"target": ["List"]
}, {
"name": "Detail",
"pattern": "detail/{contextPath}",
"titleTarget": "",
"greedy": false,
"target": ["Detail"]
}],
"targets": {
"List": {
"viewType": "XML",
"viewName": "List"
},
"Detail": {
"viewType": "XML",
"viewName": "Detail"
}
}
}
code of navigation:
onPress: function (oEvent) {
var oItem = oEvent.getSource();
var oRouter = this.getRouter();
var para = window.encodeURIComponent(oItem.getBindingContext().getPath().substr(1));
oRouter.navTo("Detail", {
contextPath: para
});
},
Do you have any idea about this ?
Solved by Fix of Portal Service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.