cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUi5 cross app navigation issue post upgrade

sun197895
Participant
0 Kudos
1,022

Hi,

We upgraded from 1.60 to 1.102 and this is causing cross app navigation failing. What I have noticed is, in the upgraded system 'sap-app-origin-hint=' is getting appended to the URL (after intent) which is causing the issue. However, in the older version 1.60 'sap-app-origin-hint=' is not getting appended to the navigated URL.

May I know how to fix this ? Thanks.

'

junwu
Active Contributor
0 Kudos

any error msg?

akshaya_p
Contributor
0 Kudos

Try giving do not allow additional parameters in the launchpad config

sun197895
Participant
0 Kudos

Nope, that did not help.

sun197895
Participant
0 Kudos

I error I get is 'The requested resource was not found'

And it is purely due to '?sap-app-origin-hint=' that gets appended to the navigation URL.

junwu
Active Contributor
0 Kudos

very likely your ui5 code is not flexible enough, got choked by additional parameter in the url

sun197895
Participant
0 Kudos

I saw this issue raised by multiple people earlier as well. But none seem to have found a solution except a workaround (coding to remove the issue causing parameter from href, which is what I did as well to make it work).

Anyways, I will wait for few days to see if anyone has a clean solution to this else will close the thread. Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

WouterLemaire
Active Contributor
0 Kudos

You can solve this by adding :?query: at the end of the route pattern like this:

{
"name": "routename", 
"pattern": "path:?query:",
"target": ["target"]
},
sun197895
Participant
0 Kudos

Let me try that, but right now I have provided an alternate solution like..

remove 'sap-app-origin-hint=' from the url whenever found (since that is what is creating the problem).

WouterLemaire
Active Contributor

as far as I’m aware of this parameter is added by the Launchpad itself and I don’t know if you can disable this..