Skip to content

Commit a44b781

Browse files
committed
Fix GitHub issue link
The GitHub issue link was opening a new tab with the same page that the visitor was on.
1 parent 5298d1d commit a44b781

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Support/SupportDropdownMenu.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const SupportDropdownMenu: React.FC = () => {
8080
8181
該当する場合は、スクリーンショットを添付してください。
8282
`
83-
: `**Documentation page URL:** ${window.location.href.replace(/#.*$/, '')}
83+
: `**Documentation page URL:** ${window.location.href.replace(/#.*$/, '')}
8484
8585
## Expected behavior
8686
@@ -100,7 +100,11 @@ If applicable, add screenshots to help explain your problem.
100100
`
101101
);
102102

103-
return `${repoUrl}?title=${issueTitle}&body=${issueBody}&labels=documentation`;
103+
const issueUrl = `${repoUrl}?title=${issueTitle}&body=${issueBody}&labels=documentation`;
104+
105+
console.log("GitHub Issue URL: ", issueUrl); // Debugging line
106+
107+
return issueUrl;
104108
})() : "#";
105109

106110
useEffect(() => {

0 commit comments

Comments
 (0)