nop 4.0 RenderPartialViewToString no longer finds absolute paths

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 6 ans
eg:
this.RenderPartialViewToString("~/Plugins/MyPluginPath/Views/Partials/_myPartialView.cshtml", model);


For some reason, razorViewEngine.FindView can't seem to find my view in nop 4.0 specifically.  The file certainly exists in the build output folder (/Presentation/Nop.Web/Plugins/MyPlugin/Views/Partials/_myPartialView.cshtml) as it renders properly in a view with:

@Html.Partial("~/Plugins/MyPluginPath/Views/Partials/_myPartialView.cshtml", model)


Am I missing something simple?
Il y a 6 ans
Hi Adam,

Thanks! We'll check it
Il y a 6 ans
Done. You can see the changes in this commit.
Thanks for the suggestion.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.