cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 query parameters issue with &/

AlexNecula
Active Contributor
0 Kudos

Hello,

I have a custom freestyle app in fiori launchpad on S4HANA on-premise. Sometimes, it will be opened via notifications with a parameter.

The issue is that the framework doesn't recognize it.

The pattern on the route is ":?query:".

Example: SemanticObject-action?Id=123456 doesn't work. In the routeMatched event, the ?query argument is undefined.

However, SemanticObject-action&/?Id=123456 works perfectly fine. Unfortunately, I don't think I can add this from the notification.

Is it possible to do something about this? I have tried using window.location to extract the id then replace the URL to get rid of it. However, when I navigate to the next page where I use the ID, the URL is changed again to add that parameter.

Thanks,

Alex

View Entire Topic
AlexNecula
Active Contributor
0 Kudos

I ended up getting the parameter I needed via regex on window.location.href then redirecting to the correct URL (with &/ before the parameter). Not the most elegant solution but it works. Hopefully SAP will fix this issue in the future.