From 7bb1f08b682e8367077e0b95e11c4fb06eb773db Mon Sep 17 00:00:00 2001 From: Evangelos Foutras Date: Fri, 19 May 2023 23:23:32 +0300 Subject: [PATCH] Drop trailing slash from GitLab package links This matches the default URL for GitLab repositories. --- main/templatetags/details_link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/templatetags/details_link.py b/main/templatetags/details_link.py index 42e43a39..545e9f68 100644 --- a/main/templatetags/details_link.py +++ b/main/templatetags/details_link.py @@ -24,7 +24,7 @@ def details_link(pkg): def scm_link(package, operation: str): pkgbase = urlquote(gitlab_project_name_to_path(package.pkgbase)) if operation == 'tree': - return f'{settings.GITLAB_PACKAGES_REPO}/{pkgbase}/' + return f'{settings.GITLAB_PACKAGES_REPO}/{pkgbase}' elif operation == 'commits': return f'{settings.GITLAB_PACKAGES_REPO}/{pkgbase}/-/commits/main'