I'm trying to move default MVC directories structure to a new one to manage something like themes. This is how the directory structure would be.
<root>\
<root>\Themes\
<root>\Themes\theme01
<root>\Themes\theme01\content\*.css
<root>\Themes\theme01\scripts\*.js
<root>\Themes\theme01\Views\
<root>\Themes\theme01\Shared\
I succeeded to change the default location of the Views following the steps indicated here How to change default view location scheme in ASP.NET MVC?
Now I need to know how I can change the way of resolving the root folder path in the .cshtml views without the need of specify a full path. For example, the css are referenced like this:
<link type="text/css" rel="stylesheet" href="~/Content/default.css" />
~/Content will resolve as http://root/Content/default.css
but I need to be resolved internally as http://root/Themes/theme01/Content/default.css
Is there is a way to change that in MVC ? Thanks !