Redirected to the current page after refreshing