fixed getCurrentUrl