WebOptimizer
WebOptimizer copied to clipboard
Incorrect path conversion when page has base tag
Our MVC's _Layout.cshtml has <base href="/app/"> base tag, which cause all relative link became unusable in debug mode.
~/bundle.scssor/bundle.scsswill translate to{folder}/file.scss, where the browser will query onapp/{folder}/file.scss~/bundle.jswill translate to list of static javascript path, e.g.{folder}/file.js, the browser will also append base path to be query onapp/{folder}/file.js
The only way to get around at moment is to add inline inside link or script tag. Even then, any file referenced in the scss file is still broken.