From 49c17d0995dadc42f7d7fdd1bf8653387c89ff0d Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Sun, 7 Mar 2021 22:27:32 +0100 Subject: [PATCH] Fix returned URL on encode --- internal/web/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/routes.go b/internal/web/routes.go index 71a69cf..cefa6fb 100644 --- a/internal/web/routes.go +++ b/internal/web/routes.go @@ -150,7 +150,7 @@ func encode(c *gin.Context) { c.AbortWithError(http.StatusBadRequest, err) return } - c.Data(http.StatusCreated, "text/plain", []byte(viper.GetString("ShortURL")+"/"+URL.Short.String)) + c.Data(http.StatusCreated, "text/plain", []byte(viper.GetString("ShortURL")+"/r/"+URL.Short.String)) return }