[MRM-1474] workaround url path mapping problems that rewrites HTML and doesn't detect the path in JavaScript