diff --git a/cmd/web/helpers.go b/cmd/web/helpers.go index 8d38d5f..96af52d 100644 --- a/cmd/web/helpers.go +++ b/cmd/web/helpers.go @@ -28,6 +28,7 @@ func (app *application) cleanUrl(url string) string { s := strings.TrimPrefix(url, "http://") s = strings.TrimPrefix(s, "https://") s = path.Base(path.Clean(s)) + s = "http://" + s return s }