- Issue created by @agoradesign
- 🇮🇱Israel jsacksick
Never experienced this... Code looks straightforward... As you can see there is no code prepending/appending ";". Is there any other JS code potentially messing with the window location? I think the previous code was reported by eslint which is why it got refactored.
- 🇦🇹Austria agoradesign
I also have no idea, why this may happen :( As mentioned, I've already seen this on another site long time ago, when the underlying issue wasn't even committed to Commerce, but we were using that issue's patch.
The fact, that I can only reproduce it on this specific production environment, makes it quite tricky to debug. I haven't spotted any other suspicious code that could mess things up here.
I mainly opened this issue, in order to have this documented and if we're lucky, other people see this too, so that they either find help for themselves or even better someone knows the reason, why the other syntax makes a difference here
For our specific project, there's no budget to invest a lot of time in investigating this problem, as our fix/workaround is patching a single line back to its original syntax