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
This commit is contained in:
fnetX (aka fralix) authored and GitHub committed 2021-11-29 21:50:43 +08:00
1 parent b5a9ee94fd
commit 830ab75ce0
4 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -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);
});