mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed broken CSS on 404 page, closes #777
This commit is contained in:
parent
49d6d2f7b0
commit
647c5ff0f3
2 changed files with 22 additions and 1 deletions
|
|
@ -1015,7 +1015,16 @@ class DatasetteRouter(AsgiRouter):
|
|||
templates = ["500.html"]
|
||||
if status != 500:
|
||||
templates = ["{}.html".format(status)] + templates
|
||||
info.update({"ok": False, "error": message, "status": status, "title": title})
|
||||
info.update(
|
||||
{
|
||||
"ok": False,
|
||||
"error": message,
|
||||
"status": status,
|
||||
"title": title,
|
||||
"base_url": self.ds.config("base_url"),
|
||||
"app_css_hash": self.ds.app_css_hash(),
|
||||
}
|
||||
)
|
||||
headers = {}
|
||||
if self.ds.cors:
|
||||
headers["Access-Control-Allow-Origin"] = "*"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue