Fixed bug.
Merge branch 'MOM-60_onbeforeunloadbug' into develop
MOM-60 remove unbeforeunload when leaving the current page