FIX: If we want a `.json` path, don't bootstrap (#12772)

FIX: If we want a .json path, don’t bootstrap (#12772)

diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
index d2a7b78..e67e996 100644
--- a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
+++ b/app/assets/javascripts/discourse/lib/bootstrap-json/index.js
@@ -237,6 +237,10 @@ module.exports = {
       return false;
     }
 
+    if (req.path.endsWith(".json")) {
+      return false;
+    }
+
     let baseURL =
       options.rootURL === ""
         ? "/"

GitHub sha: 8f244cd1

This commit appears in #12772 which was approved by pmusaraj. It was merged by eviltrout.