Skip to Content
0
May 27, 2020 at 10:41 AM

history.getDirection() is not working in 1.71 version

136 Views

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

Attachments

history-171.png (18.4 kB)