From 7219b9ddd73f4fe1dc56ff0393d02d7048e5f727 Mon Sep 17 00:00:00 2001 From: Samuel Noordhuis Date: Tue, 18 May 2021 12:49:43 +1000 Subject: [PATCH] fix(hosts/gitlab): add trailing `/` after project name --- lua/gitlinker/hosts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gitlinker/hosts.lua b/lua/gitlinker/hosts.lua index 1e477fb..aea9a31 100644 --- a/lua/gitlinker/hosts.lua +++ b/lua/gitlinker/hosts.lua @@ -31,7 +31,7 @@ end --- Constructs a gitlab style url function M.get_gitlab_type_url(url_data) - local url = M.get_base_https_url(url_data) .. url_data.repo .. "-/blob/" .. + local url = M.get_base_https_url(url_data) .. url_data.repo .. "/-/blob/" .. url_data.rev .. "/" .. url_data.file if url_data.lstart then url = url .. "#L" .. url_data.lstart