I want to return this landing Index.html in this url: my-site.com/myLanding.
So, I created a plugin with such controller:
public class LandingController : BasePluginController
{
public IActionResult Index()
{
return File("~/Plugins/MyPlugin/Static/Landing/Index.html", "text/html");
}
}
And put the Index.html with all needed files in the Static subfolder:
I make all needed work to make my plugin works.
And it works great for simple controllers with View of .cshtml files.
But the returning of raw HTML file doesn't work:
We receive the Index() method of the LandingController controller, but we can't find the needed files.
But I have this files in Presentation/Nop.Web/Plugins/MyPlugin/Static/Landing/Index.html: