Skip to content

Commit 8b27882

Browse files
authored
fix: for {user}/{user}.github.io
1 parent ebffaf9 commit 8b27882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function getContentURL(config, filePath) {
3939
if (config.private) {
4040
return urlJoin(
4141
location.origin,
42-
config.repo.split('/')[1],
42+
/\.github\.io$/.test(config.repo) ? '' : config.repo.split('/')[1],
4343
"gitbook/gitbook-plugin-github-issue-feedback/contents",
4444
filePath
4545
);

0 commit comments

Comments
 (0)