From cd268af9ddd61ae56b42d1b3bd741ecf240622f0 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 30 Jan 2021 07:39:54 +0000 Subject: [PATCH 1/2] Fix tags.css base URL --- src/views/title.html.ecr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/title.html.ecr b/src/views/title.html.ecr index 30b240e..11b4393 100644 --- a/src/views/title.html.ecr +++ b/src/views/title.html.ecr @@ -125,7 +125,7 @@ <% content_for "script" do %> <%= render_component "dots-scripts" %> - + From ca8e9a164e60329a5225854b170c07ec5cfb1028 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Sat, 30 Jan 2021 10:54:21 +0000 Subject: [PATCH 2/2] Fix the /api page error when using base URL --- src/routes/main.cr | 1 + src/views/api.html.ecr | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/main.cr b/src/routes/main.cr index 70b1334..6504800 100644 --- a/src/routes/main.cr +++ b/src/routes/main.cr @@ -154,6 +154,7 @@ struct MainRouter end get "/api" do |env| + base_url = Config.current.base_url render "src/views/api.html.ecr" end end diff --git a/src/views/api.html.ecr b/src/views/api.html.ecr index 5bfdfa4..f513c11 100644 --- a/src/views/api.html.ecr +++ b/src/views/api.html.ecr @@ -8,7 +8,7 @@ - +