Open Closed

How to change the default page to a login page? #5527


User avatar
0
lizhaofeng created
  • ABP Framework version: v7.3.0
  • UI Type:Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Steps to reproduce the issue:

How to set up a multi-layered Blazor service project to open with a login page by default, and how to configure it to return to the login page upon logout?


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try to add the @attribute [Authorize] attribute to the index page.

  • User Avatar
    0
    lizhaofeng created

    hi,liangshiwei

    it works fine,thx

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 18, 2025, 07:10