From 42251e2fe61e2104c6c6dddcb6d64bc724ab62d3 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 27 Apr 2021 14:40:17 -0400 Subject: [PATCH] FIX: Recent regression meant we were proxying qunit when we shouldn't (#12860) --- app/assets/javascripts/discourse/lib/bootstrap-json/index.js | 4 ++++ 1 file changed, 4 insertions(+) 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