From 838e3566bdee5eb609d3381b2afc411f2a5fb083 Mon Sep 17 00:00:00 2001 From: Mohammed Alotaibi Date: Sun, 14 Apr 2024 06:03:57 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20fix=20history=20url=20for?= =?UTF-8?q?=20GitLab=20&=20Codeberg=20(#294)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/partials/history_url.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/partials/history_url.html b/templates/partials/history_url.html index 390fc0546..8327ca3d2 100644 --- a/templates/partials/history_url.html +++ b/templates/partials/history_url.html @@ -18,9 +18,9 @@ {%- if git_platform == "github" -%} {{ repository_url ~ '/commits/' ~ branch ~ '/content/' }}{{ relative_path | urlencode }} {%- elif git_platform == "gitlab" -%} - {{ repository_url ~ '/-/commits/' ~ branch ~ '/' }}{{ relative_path | urlencode }} + {{ repository_url ~ '/-/commits/' ~ branch ~ '/content/' }}{{ relative_path | urlencode }} {%- elif git_platform in ["gitea", "codeberg"] -%} - {{ repository_url ~ '/commits/branch/' ~ branch ~ '/' }}{{ relative_path | urlencode }} + {{ repository_url ~ '/commits/branch/' ~ branch ~ '/content/' }}{{ relative_path | urlencode }} {%- else -%} {{ throw(message="ERROR: Unknown, unsupported, or unspecified git platform. If you're using a custom domain, please specify the 'git_platform' in the config. If you think this is a bug, please report it: https://github.com/welpo/tabi/issues/new?assignees=&labels=bug&template=bug_report.md&title=Unsupported%20Git%20Platform%20Detected") }} {%- endif -%}