简体   繁体   中英

How to implement redirection to particular page after clicking on link in email in Angular

I am Trying to implement a feature in Angular where user clicks on link provided in email and then redirect to respective page after authentication in Angular.I tried few things but nothing works.

So I tried following things :

(1) I tried to store query parameter in local storage to form URL and the tried to access those and generate link but local storage is gets cleared on that page for security reasons.

(2) I tried to store parameters in variable and store it in services which can be used to form URL. but variable gets cleared

but nothing works. Can some one help me .

您应该在电子邮件中提供特定页面的完整URL。

You could try to implement a route guard that deals with your deeplinks You should also provide code examples of what you've already done. It's possible that one of your previous attempts was correct but your implementation was flawed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM