Installed new asp.net core 2.1 identity
(the one using RCL) to play with it.
Scaffolded Login, Registration and Profile pages. Checking profile page:
Areas.Identity.Pages.Account.Manage.Index.cshtml.cs
I came accross this property:
[TempData]
public string StatusMessage { get; set; }
which is set when updating profile page:
StatusMessage = "Your profile has been updated";
return RedirectToPage();
The funny thing is the message is not shown when running locally. The funnier one is when I publish it to Azure, it works.
My Startup.cs
do have config as indicated by ofiical docs:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/app-state?view=aspnetcore-2.1#tempdata
which goes:
.AddSessionStateTempDataProvider()
and
app.UseSession();
Here is the full source code:
https://github.com/kedzior-io/dotnetpwa/tree/model-status-message-is-empty-on-redirect
Any idea what am I missing?