mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-05-21 09:08:15 +08:00
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:

committed by
GitHub

parent
b5a9ee94fd
commit
830ab75ce0
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user