From 932f3bbcab9be82aafb487d7890fde83b2210a7b Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Thu, 27 Jan 2022 11:57:41 -0700 Subject: Preserve redirect with `/_/` path prefix (#13) This adds a straightforward way of preserving Farside's redirecting behavior in the user's browser history. That way if an instance becomes unavailable between the 5 min scans, the user can opt to navigate back one page and be taken to a new instance. This is accomplished using a single line of JS, and could potentially work as the default behavior of Farside (with the current default behavior requiring a path prefix instead). This should be revisited down the road when more people are using this service. --- config/config.exs | 1 + 1 file changed, 1 insertion(+) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index 1c393cd..982990c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -9,6 +9,7 @@ config :farside, previous_suffix: "-previous", services_json: "services.json", index: "index.eex", + route: "route.eex", headers: [ {"User-Agent", "Mozilla/5.0 (Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0"}, {"Accept", "text/html"}, -- cgit v1.2.3