Shandem/ClientDependency — pull request #38 by pynej (2014-08-05 19:07:37+00:00)
Title: Added fixes for resource url's that include hash values.

Two changes:
Change the AppendVersion to generate valid url's when a hash value is present.
Explicitly disable bundling of urls with a # in them. (This already happens for ?'s).

This is primarily done when integrating external javascript libraries into a site. So it really only happens with external resources, but this fix fixes it for local and remove resources. A example of this in the real world would be the AddThis social sharing framework. To use that you would call the following:

Html.RequiresJs("//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-############");

This was incorrectly rendering as
/s7.addthis.com/js/300/addthis_widget.js#pubid=ra-############?cdv=1
Instead of the correct
/s7.addthis.com/js/300/addthis_widget.js?cdv=1#pubid=ra-############