Changed from getRoute to getCurrentUrl