jakubgarfield/Bonobo-Git-Server — pull request #100 by kfarnung (2014-03-25 06:41:52+00:00)
Title: CssRewriteUrlTransform doesn't account for virtual paths

When processing CSS files in a bundle, the CssRewriteUrlTransform class
doesn't account for virtual paths, instead assuming that the application
is located at the domain root (assumes http://foobar.com/, but it's
actually http://foobar.com/Git). This change implements a new wrapper
class that ensures that virtual directories are taken into account.

Since it just modifies the path and then passes it to the original
class, this should be low risk. If the bug is ever fixed in the
framework there will be a regression, but the bug will leave users no
worse off than they are now.

Found solution from http://aspnetoptimization.codeplex.com/workitem/83
via
http://stackoverflow.com/questions/19765238/cssrewriteurltransform-with-or-without-virtual-directory

Tested the change using IIS Express on my local machine (no virtual path
required) and on my production IIS server (using a virtual path). Both
tests were successful.