From a6f3c8ed8d900654207539daf763ce93aa864030 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Wed, 29 Jun 2022 13:32:58 -0700 Subject: [PATCH] cmd/golink: use relative links use relative links throughout rather than hardcoding the go hostname, which allows things to continue working when other hostnames are used. Change-Id: I5df0d10214799de9722871cbad99bf9af129941f --- tmpl/help.html | 2 +- tmpl/home.html | 2 +- tmpl/success.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tmpl/help.html b/tmpl/help.html index 03545b7..637cd3c 100644 --- a/tmpl/help.html +++ b/tmpl/help.html @@ -110,7 +110,7 @@ Include a "+" after a link to get information about a link without resolving it:

-Visit go/.export to export all saved links and their metadata in JSON Lines format. +Visit go/.export to export all saved links and their metadata in JSON Lines format. This is useful to create data snapshots that can be restored later.

{{`$ curl go/.export
diff --git a/tmpl/home.html b/tmpl/home.html
index 4bab988..09e1c99 100644
--- a/tmpl/home.html
+++ b/tmpl/home.html
@@ -23,7 +23,7 @@
       
       
       {{range .Clicks}}
-        go/{{.Short}}{{.NumClicks}}
+        go/{{.Short}}{{.NumClicks}}
       {{end}}
       
     
diff --git a/tmpl/success.html b/tmpl/success.html
index 71976b5..24c0548 100644
--- a/tmpl/success.html
+++ b/tmpl/success.html
@@ -1,5 +1,5 @@
 {{ define "main" }}
     

Success

-

go/{{.Short}} has been saved.

+

go/{{.Short}} has been saved.

{{ end }}