new WebDependencyFile("/Scripts/common.js", WebDependencyFileType.Javascript) renders as src="/Scripts/common.js"; which is OK but does not allow to put the app in a site subfolder.
new WebDependencyFile("~/Scripts/common.js", WebDependencyFileType.Javascript) renders as src="~/Scripts/common.js"; which is wrong.
Desired behavior
new WebDependencyFile("/Scripts/common.js", WebDependencyFileType.Javascript) should not change.
new WebDependencyFile("~/Scripts/common.js", WebDependencyFileType.Javascript) should render as src="/subfolder/Scripts/common.js"; where /subfolder if computed using the base app url.
Current behavior
new WebDependencyFile("/Scripts/common.js", WebDependencyFileType.Javascript)
renders assrc="/Scripts/common.js"
; which is OK but does not allow to put the app in a site subfolder.new WebDependencyFile("~/Scripts/common.js", WebDependencyFileType.Javascript)
renders assrc="~/Scripts/common.js"
; which is wrong.Desired behavior
new WebDependencyFile("/Scripts/common.js", WebDependencyFileType.Javascript)
should not change.new WebDependencyFile("~/Scripts/common.js", WebDependencyFileType.Javascript)
should render assrc="/subfolder/Scripts/common.js"
; where/subfolder
if computed using the base app url.