Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Asp.net Core Angular Route Issue #5320


User avatar
0
tteoh created

I'm using Asp.net Core Angular. I set .Web.Public project as startup project. After that, I run the application and the application will launched the main page( <a class="postlink" href="https://imgur.com/2XeNTGZ">https://imgur.com/2XeNTGZ</a> ). Then, I go through login page to login. But why after I login to the application, that application has didn't route me to dashboard screen and route me to the same main page( <a class="postlink" href="https://imgur.com/baSM6op">https://imgur.com/baSM6op</a> )??

But if I direct to browse <a class="postlink" href="http://localhost:4200">http://localhost:4200</a> in my browser and login user, then it will route me to the dashboard screen.

Thanks.


3 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Dublicate of #3507

  • User Avatar
    0
    tteoh created

    <cite>alirizaadiyahsi: </cite> Dublicate of #3507

    Hi,

    But how can I set returnUrl manually, or redirect it in login action in Asp.net Core Angular application that I want the user to end up in?

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @tteoh,

    You can manually set it here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Public/Views/Shared/Components/Header/Default.cshtml#L57">https://github.com/aspnetzero/aspnet-ze ... cshtml#L57</a>