You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
we have an app that is running in the server/MyApp path.
We are using System.Web.Optimization.CssRewriteUrlTransformFixed() to transform URL, but because we are not in root, but MyApp path, relative paths are resolved incorrectly.
Basically
we have something like
var urlTransform = new System.Web.Optimization.CssRewriteUrlTransformFixed();
bundles.Add(new LessBundle("~/Shared/CSS/common")
.CheckAndInclude("~/Shared/CSS/external/jquery-ui/jquery-ui.css", urlTransform));
Sorry it has taken me so long to get to this. I have updated the codebase with your suggested fix of removing the .Substring(1), as the VirtualPathUtility methods should handle both scenarios. Thanks for the thorough issue report!
Hello,
we have an app that is running in the server/MyApp path.
We are using System.Web.Optimization.CssRewriteUrlTransformFixed() to transform URL, but because we are not in root, but MyApp path, relative paths are resolved incorrectly.
Basically
we have something like
and in jquery-ui.css is
and the transformed URL in CSS is
instead of
See also http://aspnetoptimization.codeplex.com/workitem/83 and http://stackoverflow.com/a/17702773/2622707.
As a workaround we are using a copy as CssRewriteUrlTransformFixed with following line
although I think would work as well
Is there some reason for stripping tilda from path? If not, would it be possible to fix this?
Thank you very much.
The text was updated successfully, but these errors were encountered: