How to access the first url putted in the url bar in Angular 16?
i am using angular v16 and i have an email sent by the backend that has a url that redirect the user to the appropriate page , if the user is not authenticated it will redirect him to the sign in page then to the dashboard , my problem is i want the user will be redirected to the url provided in the email .
i have tried access the url using router.url but it returns /
for the first time.