Return complete URL after shortening, fixes #13

This commit is contained in:
Gerdriaan Mulder 2019-11-09 22:33:16 +01:00
parent e7b71eca69
commit 01580bfe2a

View File

@ -1,5 +1,5 @@
{{if .Request.PostForm.deleteToken -}}
{{.Request.Host}}/{{.Paste.Key}}?deleteToken={{.Paste.DeleteToken | urlquery}}
https://{{.Request.Host}}/{{.Paste.Key}}?deleteToken={{.Paste.DeleteToken | urlquery}}
{{else -}}
{{.Request.Host}}/{{.Paste.Key}}
https://{{.Request.Host}}/{{.Paste.Key}}
{{end -}}