You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
When using a custom RazorPage base class which assigns a default Layout value for instance in its constructor, it will be overwritten by null when there are no ViewStart available or when no ViewStart is defining a Layout, hence losing the default Layout value.
When using a custom
RazorPage
base class which assigns a defaultLayout
value for instance in its constructor, it will be overwritten by null when there are noViewStart
available or when noViewStart
is defining a Layout, hence losing the default Layout value.The code here https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Razor/RazorView.cs#L174 should not overwrite the
RazorPage.Layout
iflayout
is null.The view is executed after this step, so if is not impacted by this change and will always win which is expected.
The text was updated successfully, but these errors were encountered: