mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 20:13:47 +08:00
d3751c70c9
Some errors (e.g. InvalidAccess) are rendered with `include_ember: true`. Booting the ember app requires that the 'preload' data is rendered in the HTML. If a particular route was configured to `skip_before_action :preload_json`, and then went on to raise an InvalidAccess error, then we'd attempt to render the Ember app without the preload json. This led to a blank screen and a client-side error. This commit ensures that error pages will fallback to the no_ember view if there is no preload data. It also adds a sanity check in `discourse-bootstrap` so that it's easier for us to identify similar errors in future. |
||
---|---|---|
.. | ||
admin | ||
confirm-new-email | ||
discourse | ||
discourse-common | ||
discourse-ensure-deprecation-order | ||
discourse-hbr | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
locales | ||
pretty-text | ||
select-kit | ||
truth-helpers | ||
wizard | ||
.licensee.json | ||
.npmrc | ||
admin-plugins.js.erb | ||
handlebars-shim.js | ||
markdown-it-bundle.js | ||
mini-loader.js | ||
package.json | ||
polyfills.js | ||
pretty-text-bundle.js | ||
service-worker.js.erb | ||
yarn.lock |