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:
parent
b5a9ee94fd
commit
830ab75ce0
4 changed files with 14 additions and 14 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue