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.
6 anni tempo fa
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?
6 anni tempo fa
Hi Adam,

Thanks! We'll check it
6 anni tempo fa
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.