diff --git a/src/services/utils_service.cr b/src/services/utils_service.cr index 28af6e8..c49acc9 100644 --- a/src/services/utils_service.cr +++ b/src/services/utils_service.cr @@ -11,7 +11,8 @@ module Paste69 url += "##{anchor}" if anchor scheme = ssl ? "https" : "http" - "#{scheme}://#{url}" + url = "#{scheme}://#{url}" + url.strip("/") end def is_fhost_url?(url : String) diff --git a/src/templates/index.html.j2 b/src/templates/index.html.j2 index 3c78c32..d93f150 100644 --- a/src/templates/index.html.j2 +++ b/src/templates/index.html.j2 @@ -77,7 +77,7 @@ days | ... | .... | ...... - 30 | .................... + 30 | .................... 0 256.0 512.0 MiB