Fix bug about url for current page