This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
Can we have a UrlHelper.Content parameter or overload that appends the file version? #5569
Labels
Milestone
The TagHelpers for
<link>
and<script>
are awesome. So awesome that I would like to be able to use the sameasp-append-version
functionality for scripts and styles that have to be added dynamically, such as scripts custom elements that need ES2015 class syntax in browsers that support it but ES5 syntax in browsers that don't. Right now to take advantage of this functionality, we have to declare dummy elements -- either<link>
s with bogusrel
s or<script>
with bogustype
s -- withid
s so we can retrieve them in JavaScript and get theirsrc
/href
values.Could this functionality be exposed via
Url.Content
, either via an optional parameter or an overload?The text was updated successfully, but these errors were encountered: