From 791679febf5c6ac8e9111bf2931e3813fd7f0d6e Mon Sep 17 00:00:00 2001 From: suryakanta subudhi Date: Thu, 1 Oct 2026 15:34:27 +0530 Subject: [PATCH] Link star/watch counts to repo page instead of restricted routes --- docs/github-btn.html | 2 +- src/js.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/github-btn.html b/docs/github-btn.html index 652f8f6..7f7b36e 100644 --- a/docs/github-btn.html +++ b/docs/github-btn.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/js.js b/src/js.js index 1f7767f..d7e70fe 100644 --- a/src/js.js +++ b/src/js.js @@ -110,11 +110,11 @@ if (v === '2') { mainButton.classList.add('github-watchers'); text.textContent = 'Watch'; - counter.href = `${REPO_URL}/watchers`; + counter.href = REPO_URL; } else { mainButton.classList.add('github-stargazers'); text.textContent = 'Star'; - counter.href = `${REPO_URL}/stargazers`; + counter.href = REPO_URL; } title = `${text.textContent} ${USER_REPO}`; @@ -124,7 +124,7 @@ case 'star': { mainButton.classList.add('github-stargazers'); text.textContent = 'Star'; - counter.href = `${REPO_URL}/stargazers`; + counter.href = REPO_URL; title = `${text.textContent} ${USER_REPO}`; break; }