cancel
Showing results for 
Search instead for 
Did you mean: 

Cross App Back Navigation Issue

0 Kudos
401

Hello All,

We have an app that does cross-app navigation to one of our other apps. The issue is, as we navigate to the second app and try to navigate back to the first app, somehow we just can't! As we click on this below button (back navigation button), it does not respond at all! There is also no error in the console. Where are we doing wrong?

Really appreciate for any help!

Best,

Merve

leoirudayam
Advisor
Advisor
0 Kudos

Does the route change? So is it navigating to a different URL?

0 Kudos

Hello Leo,

Thanks for the reply. No, it is no navigating to a different URL. The first app is the start point. I navigate to the second app from the first app. BUT, as I try to navigate back to the first app from the second app using the above pictured button, it does nothing.

leoirudayam
Advisor
Advisor
0 Kudos

Indeed that sounds weird. Are you using a FLP including intents and semantic objects or how did you introduce this routing? Or are you using an own shell bar header? In that case, you'd need to program an onNavBack function for the navButtonPressed event.

0 Kudos

The cross navigation is being called by the below code block.

sap.ushell.Container.getServiceAsync("CrossApplicationNavigation").then(
function (oService) {				
var sHref = oService.hrefForExternal({					
target: {						
semanticObject: "SemanticObjXXX", 						action: "display" },					
params: { 
"docnum": Document					}				}) || "";				
var sUrl = window.location.href.split("#")[0] + sHref;				sap.m.URLHelper.redirect(sUrl, true);			
});  
WouterLemaire
Active Contributor
0 Kudos

Do you have any errors in the console? Open development tools before navigating to your second app and look for errors from your first navigation till going back. I had a case where an error on the first navigation (which worked fine) blocked the back navigation.


kr, Wouter

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor

oServide.toExternal({
target: {
shellHash: sHref
}
});

you should use api to navigate.

this probably also answers your other question.