ABP Framework version: v5.1.3 UI Type: MVC Database System: SQL Server / MongoDB Tiered (for MVC) or Auth Server Separated (for Angular): yes Exception message and full stack trace: Steps to reproduce the issue:
We have using the Emailing functionality in our application and sending the URL link as part of the email, for most of the services the user is getting redirected after successful login but for emails from Abp forms and from specific service module it is just going to home page not redirecting to desired page. Any idea?
For an example We have two services Service A and Service B,
URL for Servica A is perfectly working https://test.com/ServiceA/MyObjectA/Edit/?id=506d357d-bb97-f086-713c-3a0e9c192693
where as URL for Service B is not working https://test.com/ServiceBMyObjectA/Edit/?id=d1268bec-b1ae-8397-c175-3a0e9c194353
Do we need to do any configurations for the same? Please advise.
14 Answer(s)
- 
    0hi Please share the logs. There is a RedirectAllowedUrlsin theAppUrlOptionsYou can add your URL to it or override the IsRedirectAllowedUrlmethod ofIAppUrlProvider.
- 
    0hi Please share the logs. There is a RedirectAllowedUrlsin theAppUrlOptionsYou can add your URL to it or override the IsRedirectAllowedUrlmethod ofIAppUrlProvider.I think there is small miss communication, when users are clicking on the application URL link, they are able to login and navihate to the application. but our requirement is redirect to Specific Module specific URL after successful login. In our case this is perfectly working for Service A but not behaving same for Service B and ABP. Forms module. In case of service B, the user is able to login and just landed to Default/Home page not the module sepcific page https://test.com/ServiceBMyObjectA/Edit/?id=d1268bec-b1ae-8397-c175-3a0e9c194353 
- 
    0hi I do not understand it very well. Can you share some screenshots, code and logs? Thanks 
- 
    0hi I do not understand it very well. Can you share some screenshots, code and logs? Thanks Is it possible to have a screenshare session ? 
- 
    0hi Please share some info first. Then we can join a zoom meeting. 
- 
    0hi Please share some info first. Then we can join a zoom meeting. ok, will send 
- 
    0Thanks 
- 
    0Thanks shared the screen recording to ur email malimings@gmail.com 
- 
    0hi Please share the full logs.txtof your video, I guess thereturn urlhas wrong.liming.ma@volosoft.com Thanks 
- 
    0hi Please share the full logs.txtof your video, I guess thereturn urlhas wrong.liming.ma@volosoft.com Thanks Sent a logs to ur email, let me know if anything is needed more on this 
- 
    0hi It seems the logs don't contain authserverwebsite.Can you share the logs of all website? Thanks Also set the level to Debug will be best. public async static Task<int> Main(string[] args) { Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .Enrich.FromLogContext() .WriteTo.Async(c => c.File("Logs/logs.txt")) .WriteTo.Async(c => c.Console()) .CreateLogger();
- 
    0hi It seems the logs don't contain authserverwebsite.Can you share the logs of all website? Thanks Also set the level to Debug will be best. public async static Task<int> Main(string[] args) { Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .Enrich.FromLogContext() .WriteTo.Async(c => c.File("Logs/logs.txt")) .WriteTo.Async(c => c.Console()) .CreateLogger();for this we had to deploy the code, will share that tomorrow 
- 
    0hi You can share the logs of authserver now without set level. 
- 
    0hi You can share the logs of authserver now without set level. You can close this ticket, We found the issue, we missed adding options.Conventions.AuthorizePage("/XXXXService/XXXXManagements/Edit/Index", XXXXServicePermissions.XXXXManagements.Default); after adding so it worked fine. 
 
                                