From bb765f9c0ca95e2324af2b5301aa80ec21080617 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Tue, 31 Mar 2020 16:23:46 +0300 Subject: [PATCH] Change home destination --- lib/plausible_web/templates/error/error.html.eex | 2 +- lib/plausible_web/templates/layout/app.html.eex | 2 +- lib/plausible_web/templates/layout/focus.html.eex | 2 +- lib/plausible_web/views/layout_view.ex | 8 ++++++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/plausible_web/templates/error/error.html.eex b/lib/plausible_web/templates/error/error.html.eex index 16c87cc83..166198293 100644 --- a/lib/plausible_web/templates/error/error.html.eex +++ b/lib/plausible_web/templates/error/error.html.eex @@ -13,7 +13,7 @@

<%= @status %>

<%= @message %>
- <%= link("Go to the homepage", to: "/", class: "button mt-4") %> + <%= link("Go to the homepage", to: home_dest(@conn), class: "button mt-4") %>
diff --git a/lib/plausible_web/templates/layout/app.html.eex b/lib/plausible_web/templates/layout/app.html.eex index 34a0e6690..00bee5cb4 100644 --- a/lib/plausible_web/templates/layout/app.html.eex +++ b/lib/plausible_web/templates/layout/app.html.eex @@ -15,7 +15,7 @@ <%= render("_svg_icons.html") %>