• Resolved rjwilt

    (@rjwilt)


    Tried to insert JavaScript code before </head> and got a syntax error. It appears that a backslash in a regex was lost. For example, enter this into the ASE configuration:

    <script>
    var currentPagePath = window.location.pathname.replace(/\/$/, '');
    </script>

    In the site front end, the backslash is missing, resulting in a syntax error.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Custom Code – Backslash in JavaScript code removed’ is closed to new replies.