diff --git a/app/assets/javascripts/discourse/app/controllers/exception.js b/app/assets/javascripts/discourse/app/controllers/exception.js index 0057782817c..d4a285b1f14 100644 --- a/app/assets/javascripts/discourse/app/controllers/exception.js +++ b/app/assets/javascripts/discourse/app/controllers/exception.js @@ -51,6 +51,9 @@ export default Controller.extend({ isServer: gte("thrown.status", 500), isUnknown: none("isNetwork", "isServer"), + // Handling for the detailed_404 setting (which actually creates 403s) + errorHtml: alias("thrown.responseJSON.extras.html"), + // TODO // make ajax requests to /srv/status with exponential backoff // if one succeeds, set networkFixed to true, which puts a "Fixed!" message on the page diff --git a/app/assets/javascripts/discourse/app/templates/exception.hbs b/app/assets/javascripts/discourse/app/templates/exception.hbs index 99d6e459a9a..41555d71012 100644 --- a/app/assets/javascripts/discourse/app/templates/exception.hbs +++ b/app/assets/javascripts/discourse/app/templates/exception.hbs @@ -1,22 +1,26 @@