File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ for (const key in categories) {
580
580
const username = (<HTMLInputElement>document.getElementById("github-username")).value;
581
581
const data = createProfileData();
582
582
const encodedFileData = encodeURIComponent(JSON.stringify(data));
583
- const githubQueryLink = `https://github.com/${username}/${username}/new/main/cucoders_data/new ?value=${encodedFileData}&filename=profile-data.json`;
583
+ const githubQueryLink = `https://github.com/${username}/${username}/new/main/cucoders_data?value=${encodedFileData}&filename=profile-data.json`;
584
584
window.open(githubQueryLink);
585
585
}
586
586
@@ -635,12 +635,12 @@ for (const key in categories) {
635
635
async function setLinkAttr(username, id, file_name, newFileContent = "") {
636
636
const encodedFileData = encodeURIComponent(newFileContent);
637
637
let rawUrl = `https://raw.githubusercontent.com/${username}/${username}/main/cucoders_data/${file_name}`;
638
- let newUrl = `https://github.com/${username}/${username}/new/main/cucoders_data/new ?value=${encodedFileData}&filename=${file_name}`;
638
+ let newUrl = `https://github.com/${username}/${username}/new/main/cucoders_data?value=${encodedFileData}&filename=${file_name}`;
639
639
let editUrl = `https://github.com/${username}/${username}/edit/main/cucoders_data/${file_name}`;
640
640
641
641
if (id == "overview") {
642
642
rawUrl = `https://raw.githubusercontent.com/${username}/${username}/main/README.md`;
643
- newUrl = `https://github.com/${username}/${username}/new/main/new ?value=${encodedFileData}&filename=README.md`;
643
+ newUrl = `https://github.com/${username}/${username}/new/main?value=${encodedFileData}&filename=README.md`;
644
644
editUrl = `https://github.com/${username}/${username}/edit/main/README.md`;
645
645
}
646
646
You can’t perform that action at this time.
0 commit comments