From f446e3b4ab2d3f787a17d1cfe09ee8f5f7b10089 Mon Sep 17 00:00:00 2001 From: wxiaoguang <wxiaoguang@gmail.com> Date: Sun, 16 Jun 2024 10:07:21 +0800 Subject: [PATCH] Fix JS error when creating new issue (#31383) Fix #31336 --- web_src/js/features/repo-legacy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index e53d86cca0..de4f611b5d 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -272,7 +272,7 @@ export function initRepoCommentForm() { } $list.find('.selected').html(` - <a class="item muted sidebar-item-link" href=${htmlEscape(this.getAttribute('href'))}> + <a class="item muted sidebar-item-link" href="${htmlEscape(this.getAttribute('data-href'))}"> ${icon} ${htmlEscape(this.textContent)} </a>