cancel
Showing results for 
Search instead for 
Did you mean: 

slash is automatically added to url when refreshing SAPUI5 App detail Page in the Portal Launchpad

0 Kudos

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 ?

View Entire Topic
former_member732788
Discoverer
0 Kudos

Solved by Fix of Portal Service.