Skip to content

A platform for community discussion. Free, open, simple.

DEV: Don't forward `test-i18n.js` requests (#17422)

Jarek Radosz6487179dec38
diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
index adb61b6d0b6..92d5616c622 100644
--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
@@ -392,9 +392,12 @@ to serve API requests. For example:
shouldForwardRequest(request) {
if (
- ["/tests/index.html", "/ember-cli-live-reload.js", "/testem.js"].includes(
- request.path
- )
+ [
+ "/tests/index.html",
+ "/ember-cli-live-reload.js",
+ "/testem.js",
+ "/assets/test-i18n.js",
+ ].includes(request.path)
) {
return false;
}