reiji-h 1 год назад
Родитель
Сommit
5f75eaa2c1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/app/src/features/growi-plugin/server/models/vo/github-url.ts

+ 2 - 2
apps/app/src/features/growi-plugin/server/models/vo/github-url.ts

@@ -39,8 +39,8 @@ export class GitHubUrl {
   get archiveUrl(): string {
   get archiveUrl(): string {
     const encodedBranchName = encodeURIComponent(this.branchName);
     const encodedBranchName = encodeURIComponent(this.branchName);
     const encodedTagName = encodeURIComponent(this.tagName);
     const encodedTagName = encodeURIComponent(this.tagName);
-    const zipUrl = encodedTagName !== '' ? `tags/${encodedTagName}.zip` : `heads/${encodedBranchName}.zip`;
-    const ghUrl = new URL(`/${this.organizationName}/${this.reposName}/archive/refs/${zipUrl}`, 'https://github.com');
+    const zipUrl = encodedTagName !== '' ? `tags/${encodedTagName}` : `heads/${encodedBranchName}`;
+    const ghUrl = new URL(`/${this.organizationName}/${this.reposName}/archive/refs/${zipUrl}.zip`, 'https://github.com');
     return ghUrl.toString();
     return ghUrl.toString();
   }
   }