When writing @Url.Content("~")
inside of an Area, I would like it to reference the root of that Area instead of the root of the application. How can I accomplish this?
For example, given the following folder structure, I would like Url.Content("~")
to resolve to http://localhost:52478/Admin/
instead of http://localhost:52478/
.
- Areas
- Admin
- Content
- ...
- Content
- Admin
- Content
- ...