WebApiContrib.Formatting.Razor icon indicating copy to clipboard operation
WebApiContrib.Formatting.Razor copied to clipboard

Layout template does not use RazorViewFormatter siteRootPath

Open mattbrailsford opened this issue 8 years ago • 0 comments

If you set the siteRootPath on the RazoeViewFormatter, and you have a view with a layout set such as

@{
    Layout = "_layout.cshtml";
}

Then the layout doesn't get found as the template engine tries to look in the application directory, rather than the relative directory of where the rendering view is located.

mattbrailsford avatar Sep 11 '16 14:09 mattbrailsford