Skip to content

Commit 4b5f983

Browse files
committed
Small fix by replacing 'link' by 'href'
1 parent cc74f7d commit 4b5f983

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/js/repo.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1282,17 +1282,17 @@ class Repository {
12821282
href = href.replace("./", "");
12831283
href = root ? root + "/" + href : href;
12841284
if(window.branch) {
1285-
href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + link + "@" + branch;
1285+
href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + href + "@" + branch;
12861286
} else {
1287-
href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + link + "@";
1287+
href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + href + "@";
12881288
}
12891289
} else if(href[0] == "/") {
12901290
// Relative to repository root
12911291
href = href.replace("/", "");
12921292
if(window.branch) {
1293-
href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + link + "@" + branch;
1293+
href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + href + "@" + branch;
12941294
} else {
1295-
href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + link + "@";
1295+
href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + href + "@";
12961296
}
12971297
}
12981298

0 commit comments

Comments
 (0)