Open Closed

Blazor WASM startup with Login Page (or Landing Page) without going to Index Page #2463


User avatar
0
kbowma created
  • ABP Framework version: v5.1.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Microservice Template (Blazor WASM)
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I have read all the threads (and posted my own) on redirecting to login (or separate landing page) when the application starts but there does not seem to be a straight forward answer that does not have the issue of the index page first showing then redirecting to login. So, my question is... has anyone been able to find a solution for having the Blazor WASM application go directly to a login page (or landing page) without having the index page first flash up as it is redirecting?


5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    This is an easier way, anonymous users will redirect to the login page.

  • User Avatar
    0
    kbowma created

    Thank you for the response, but this has the same issue as the other threads on this topic. The index page is displayed prior to going to the login page. I need a solution that does not display the index page first.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    This seems to be an unrelated issue with ABP. We can only search for blazor's solution.

  • User Avatar
    0
    kbowma created

    I am a bit unclear on your response. Are you saying this is not an ABP issue? If so, I am struggling with that since you control the main layout. From strictly a Blazor solution all I would need to do is move the @page "/" to the page I want to startup. If I do this within ABP it does startup with the correct page but as a component of the overall layout. I need it to be its own page and not display any of the application layout.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can try to do this using Microsoft's official blazor template.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11