on 08-18-2023 6:25 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.