For pages that can pop back (e.g. Partial pages \ View Components), the invoking component already creates a new ViewContext. ViewStart, Pages and Layouts need to share the same Layout. This is required for sharing ViewData values (such as title). Fixes #861 |
||
|---|---|---|
| .. | ||
| Components/ComponentThatSetsTitle | ||
| _Layout.cshtml | ||
| _LayoutWithTitle.cshtml | ||
| _Partial.cshtml | ||
| _PartialThatSetsTitle.cshtml | ||