[MAC] fix url handling for OnNavigateToUrl