From 6487179dec38a3a7faaf24a546885f4200bdf6cc Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 11 Jul 2022 13:14:44 +0200 Subject: [PATCH] DEV: Don't forward `test-i18n.js` requests (#17422) This fixes i18n related tests in dev env --- .../javascripts/discourse/lib/bootstrap-json/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; }