The url read-only property of the NavigationDestination interface returns the URL being navigated to.
url
MDN Reference