ABP Framework version: v7.2.2
UI Type: Angular
Database System: EF Core (SQL Server)
Tiered (for MVC) or Auth Server Separated (for Angular): yes
Exception message and full stack trace:
Steps to reproduce the issue:
We are using ABP with Angular , I have a situation in which on click of any link I want the user to be directed to login and after successful login we have to redirect the user to the same page that whatever user clicked before.
I tried this, const params = { returnUrl: 'https://www.google.ca/' }; this.authService.navigateToLogin(params);
I also tried it with my own Auth guard (canActivate) but they dont seem to be redirecting to the old url before logging in.
Please let me know what is the alternative to make this work(in Angular).
User Presses a Link => Redirect to Login Page => User again redirected to the link in step 1.
6 Answer(s)
-
0
-
0
Ok I just put https://google.ca just as an example , actually I need to book keep the original url and redirect to this Url after successfully logged in, the issue is not about CORS ,
Issue is its not able to redirect to the original url after logging in. inspite of following the ABP way of mentioning redirectUrl. It would be great if you could guide me in those directions
I referred to these ABP link's but none of them are helping me https://github.com/abpframework/abp/issues/16588 https://support.abp.io/QA/Questions/5051/How-can-I-redirect-the-user-to-the-previous-URL-after-login
-
0
Ok I just put https://google.ca just as an example , actually I need to book keep the original url and redirect to this Url after successfully logged in, the issue is not about CORS ,
Issue is its not able to redirect to the original url after logging in. inspite of following the ABP way of mentioning redirectUrl. It would be great if you could guide me in those directions
I referred to these ABP link's but none of them are helping me https://github.com/abpframework/abp/issues/16588 https://support.abp.io/QA/Questions/5051/How-can-I-redirect-the-user-to-the-previous-URL-after-login
-
0
-
0
Sorry I have a situation where I wont be able to upgrade now. Could you suggest me an alternative in 7.2.2
-
0
Hi again
sridhar
, sorry for late reply. I'll check for a workaround and to inform you.