cancel
Showing results for 
Search instead for 
Did you mean: 

history.getDirection() is not working in 1.71 version

iamsahu
Explorer
0 Kudos
200

Hi,

I am using history object to identify the direction am navigating.

var oHistory = sap.ui.core.routing.History.getInstance();
if( oHistory.getDirection() === "BackWards"){
//do some tasks
} else {
//do some other task
}

but when i open a tile(application) for the first time, the code "oHistory.getDirection()" should give direction as "NewEntry" but instead its giving direction as "BackWards" which is wrong.

Note: in sapui5 version 1.60(history-160-version.png) its working absolutely fine but in latest version i,e 1.71(history-171.png) its not working.

Please find the attachment for clear understanding

Regards

charanaraj sahus

Accepted Solutions (0)

Answers (0)