Skip to content

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

DEV: Fix the /tests path in ember-cli server (#15075)

Jarek Radosz910516388224
diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
index 8d25e0c03b8..1938ddc0f14 100644
--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
@@ -309,6 +309,10 @@ to serve API requests. For example:
},
shouldHandleRequest(request) {
+ if (request.path === "/tests/index.html") {
+ return false;
+ }
+
if (request.get("Accept") && request.get("Accept").includes("text/html")) {
return true;
}