Skip to content

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

FIX: Recent regression meant we were proxying qunit when we shouldn't (#12860)

Robin Ward42251e2fe61e
diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
index 7e1e112fe91..a4e91e10f79 100644
--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
@@ -161,6 +161,10 @@ function buildFromBootstrap(assetPath, proxy, req) {
}
async function handleRequest(assetPath, proxy, req, res) {
+ if (assetPath.endsWith("tests/index.html")) {
+ return;
+ }
+
if (assetPath.endsWith("index.html")) {
try {
// Avoid Ember CLI's proxy if doing a GET, since Discourse depends on some non-XHR