How to change root path ~/ in Razor in asp.net core
问题 The simplest question for which I can't find an answer. I have an asp.net core 2.1 MVC application with Razor. Application widely uses ~/path syntax. Everything works great if application runs from domain root (for example, from http://localhost:5000/) But when I run application at non-root (for example, http://localhost:5000/app) the Razor still uses root ( / ) as base path. Question: how to configure this? How to specify base path for Razor's ~/ ? There must be an environment variable for