set currentUrl before pageFinish