David Taylor
d3751c70c9
FIX: Ensure error handlers render correctly without preload_json ( #17696 )
...
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.
2022-07-27 22:29:13 +01:00
..
2022-07-27 16:35:27 +02:00
2022-07-20 19:18:48 -06:00
2022-07-27 16:35:27 +02:00
2022-07-05 02:06:28 +08:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-05-23 10:07:15 +10:00
2022-03-01 17:50:50 +00:00
2022-07-27 16:35:27 +02:00
2022-07-27 16:35:27 +02:00
2022-07-27 16:35:27 +02:00
2022-06-20 16:57:46 +10:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-07-27 16:35:27 +02:00
2022-07-27 16:35:27 +02:00
2022-05-17 18:37:43 +03:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-05-17 13:06:08 -05:00
2022-07-27 16:35:27 +02:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-07-27 16:35:27 +02:00
2022-06-01 18:18:20 +01:00
2022-03-01 17:50:50 +00:00
2022-07-25 15:19:53 +03:00
2022-03-01 17:50:50 +00:00
2022-05-17 13:06:08 -05:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-05-10 10:42:18 +10:00
2022-03-01 17:50:50 +00:00
2022-07-27 22:29:13 +01:00
2022-06-16 14:38:43 +01:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-07-11 12:01:47 +02:00
2022-03-01 17:50:50 +00:00
2022-07-27 16:35:27 +02:00
2022-07-12 20:52:55 +03:00
2022-03-01 17:50:50 +00:00
2022-07-27 16:35:27 +02:00
2022-06-06 15:16:01 +08:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-04-19 11:07:25 -03:00
2022-07-27 16:35:27 +02:00
2022-07-27 06:53:01 +05:30
2022-07-27 16:35:27 +02:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-07-27 16:35:27 +02:00
2022-03-01 17:50:50 +00:00
2022-07-26 10:34:15 +02:00
2022-03-01 17:50:50 +00:00
2022-05-26 09:53:01 +10:00
2022-03-01 17:50:50 +00:00
2022-07-27 16:35:27 +02:00
2022-03-01 17:50:50 +00:00
2022-03-01 17:50:50 +00:00
2022-07-07 17:37:05 +04:00
2022-07-27 17:04:42 -03:00
2022-03-01 17:50:50 +00:00
2022-06-13 15:36:45 +01:00
2022-03-01 17:50:50 +00:00