Base solution for your next web application
Open Closed

After successful login won't redirect to dashboard but reload login screen instead #10842


User avatar
0
130servicing created

Product: .NET Core + Angular v10.2.0

Hello, the issue I am facing is the one described in tthe title: after a successful login I am not redirected to the correct page (the dashboard) but I am redirected to the login page again. Please note that this happens only when debugging, not after publishing the app (with Visual Studio 2019 localhost, FYI). I have already tried to rebuild the solution, change browsers, cleaning caches, reinstall browsers, and so on.

Thanks in advance.


1 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @130servicing

    Can you please check if it resolves your redirectUrl correctly. https://github.com/aspnetzero/aspnet-zero-core/blob/646199ca88efd5c1252fca5458bf13a3607790a9/angular/src/account/login/login.service.ts#L238-L250