Fix manage views layout
This commit is contained in:
parent
5079f708e1
commit
df4db2f49c
|
|
@ -1,5 +1,12 @@
|
|||
@{
|
||||
Layout = "/Areas/Identity/Pages/_Layout.cshtml";
|
||||
if (ViewData.TryGetValue("ParentLayout", out var parentLayout))
|
||||
{
|
||||
Layout = (string)parentLayout;
|
||||
}
|
||||
else
|
||||
{
|
||||
Layout = "/Areas/Identity/Pages/_Layout.cshtml";
|
||||
}
|
||||
}
|
||||
|
||||
<h2>Manage your account</h2>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
@{
|
||||
if (Layout != "_Layout")
|
||||
{
|
||||
ViewData["ParentLayout"] = Layout;
|
||||
Layout = "./_Layout.cshtml";
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue