Skip to content

Inlining of javascript containing strings like '$1' fails

Bug

Javascript may contain strings like '$1'. Inlining such javascript with the option 'addInDocument'/'addContentInDocument' does not work correctly.

What should happen

Javascript gets inlined.

What actually happens

In the inlined javascript every string like '$1' is replaced by an empty string.

See ScriptmergerJavascript.php

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information