Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout template does not use RazorViewFormatter siteRootPath #24

Open
mattbrailsford opened this issue Sep 11, 2016 · 0 comments
Open

Comments

@mattbrailsford
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant