Virtual Paths (Sub Directories)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 年 前
Not sure if this has been posted already - but, would be nice to add a web.config entry so that we can pass in the virtual root for the app.  When I've implemented nop I don't always put it in the root dir. So if you add the key "Nop.VirtualPath" to the appsettings section then you could replace all code redirects like such:

file replace Response.Redirect("~/  with Response.Redirect(ConfigurationManager.AppSettings["Nop.VirtualPath"] + "

Then for the value you could specify something like "~/Store/" - i.e. -

<add key="Nop.VirtualPath" value="~/Store/" />

Then we can drop Nop in any subdir!!

BlogEngine.NET does this.... some paths to controls would have to be restructured as well to not use the absolute web root code ("~/")

Ideas?

Of course, this can all be done manually, but thought it would be a nice perk.
15 年 前
We have already added "Virtual Paths" to our roadmap
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.