在 Angular SPA ASP.NET 核心应用程序中离开 IdentityServer 页面 - 重新加载应用程序

Leaving IdentityServer page in Angular SPA ASP.NET Core app - reloads the app

我有 ASP.NET Core Angular 带有 IdentityServer 4 的 SPA 应用程序。

每次我进入身份页面(例如管理帐户)然后返回我的应用程序(例如通过单击主页 link 或返回按钮)时,网站都会重新加载。

这是预期的吗?我可以将此行为配置为不同吗?

编辑: 这似乎是设计使然。我创建了快速测试应用程序,它的行为相同

显然这是设计使然,更安全。在这里找到它:https://blog.angular-university.io/angular-jwt-authentication/

A separately hosted login page is an improvement security-wise because this way the password is never directly handled by our application code in the first place.