A platform for community discussion. Free, open, simple.
FIX: If we want a `.json` path, don't bootstrap (#12772)
Robin Ward8f244cd1b963
diff --git a/app/assets/javascripts/discourse/lib/bootstrap-json/index.js b/app/assets/javascripts/discourse/lib/bootstrap-json/index.jsindex d2a7b7803a0..e67e996402e 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 === ""? "/"