From 830ab75ce03e187ee7bff024ed8318db47a62f8b Mon Sep 17 00:00:00 2001
From: "fnetX (aka fralix)" <git@fralix.ovh>
Date: Mon, 29 Nov 2021 14:50:43 +0100
Subject: Switch archive URL code back to href attributes (#17796)

* Add fallback href link
* Switch async archive generation to use href links
* Edit all templates to use href instead of data-url for archives
* Add consistent rel="nofollow" as per wxiaoguang
---
 web_src/js/features/repo-common.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web_src/js')

diff --git a/web_src/js/features/repo-common.js b/web_src/js/features/repo-common.js
index 2ae4f9c94e..3ddabe10f1 100644
--- a/web_src/js/features/repo-common.js
+++ b/web_src/js/features/repo-common.js
@@ -35,7 +35,7 @@ function getArchive($target, url, first) {
 export function initRepoArchiveLinks() {
   $('.archive-link').on('click', function (event) {
     event.preventDefault();
-    const url = $(this).data('url');
+    const url = $(this).attr('href');
     if (!url) return;
     getArchive($(event.target), url, true);
   });
-- 
cgit v1.2.3