window.location in application layout is replaced with window.top