diff options
author | fnetX (aka fralix) <git@fralix.ovh> | 2021-11-29 14:50:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 21:50:43 +0800 |
commit | 830ab75ce03e187ee7bff024ed8318db47a62f8b (patch) | |
tree | 064a1510b6f2c55c40a00f8028a79c501a6bfdd6 /web_src/js/features/repo-common.js | |
parent | b5a9ee94fd1f3bbe35bd19dfc4c7025e9f8e0768 (diff) | |
download | gitea-830ab75ce03e187ee7bff024ed8318db47a62f8b.tar.gz gitea-830ab75ce03e187ee7bff024ed8318db47a62f8b.zip |
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
Diffstat (limited to 'web_src/js/features/repo-common.js')
-rw-r--r-- | web_src/js/features/repo-common.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); }); |