I wanting to know if at all possible, if can I override what the tilde (~) resolves to in a razor view page.
For example
<link type="text/css" rel="stylesheet" href="~/Content/Site.css">
Is there somewhere that I can override what the tilde resolves too? I have a custom view engine and base view page but cant seem to find it!
Thanks in advance!
Edit
I have content e.g. css and images stored with seperate folders for modules. The views that are being rendered belong to a module so I would like ~ to resolve to the modules content folder rather than the host.
I already know the paths for my modules etc, I just want to be able to change the ~ from resolving to /, to resolve to /Modules/ModuleName/.