Skip to content

Commit e9fb8de

Browse files
bertdaykodiakhq[bot]amirhhashemi
authored
feat: Auto-populate page field when reporting an issue (#1051)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Amir Hossein Hashemi <[email protected]>
1 parent 5cde70a commit e9fb8de

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ui/page-issue-link.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,18 @@ export const PageIssueLink: Component = () => {
88
const i18n = useI18n();
99

1010
const srcPath = createMemo(() => {
11-
return `https://github.com/solidjs/solid-docs-next/issues/new?assignees=ladybluenotes&labels=improve+documentation%2Cpending+review&projects=&template=CONTENT.yml&title=[Content]:&subject=${getEntryFileName()}`;
11+
return (
12+
"https://github.com/solidjs/solid-docs-next/issues/new" +
13+
"?assignees=ladybluenotes" +
14+
"&labels=improve+documentation%2Cpending+review" +
15+
"&projects=" +
16+
"&template=CONTENT.yml" +
17+
"&title=[Content]:" +
18+
`&subject=${getEntryFileName()}` +
19+
`&page=${window.location.href}`
20+
);
1221
});
22+
1323
return (
1424
<a
1525
class="flex no-underline hover:text-blue-700 dark:hover:text-blue-300 dark:text-slate-300"

0 commit comments

Comments
 (0)