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) 2021-11-29 14:50:43 +01:00 committed by GitHub
parent b5a9ee94fd
commit 830ab75ce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 14 deletions

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);
});