Always show the shortened URL; optionally print the deleteToken URL

This commit is contained in:
Gerdriaan Mulder 2019-11-09 22:44:02 +01:00
parent 01580bfe2a
commit d0b8a9ab9e

View File

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