Skip to content

Commit

Permalink
🔥 Include https:// in the url
Browse files Browse the repository at this point in the history
Sometimes some apps rely on its presence
(for example, Slack). Without it the link
may not open properly.
  • Loading branch information
lunakoly committed Jul 30, 2023
1 parent 25d89ec commit 7cd24a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class GithubUrlBuilder : UrlBuilder {
.removeUrlExtension()

return buildString {
append("https://")
append(importantPart)
append("/blob/")
// We can't use the branch here, because the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class GitlabUrlBuilder : UrlBuilder {
.removeUrlExtension()

return buildString {
append("https://")
append(importantPart)
append("/-/blob/")
// We can't use the branch here, because the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class SpaceUrlBuilder : UrlBuilder {
.replaceFirst("""([^/]*)/([^/]*)/(.*)""".toRegex(), "$1/p/$2/repositories/$3/files/")

return buildString {
append("https://")
append(importantPart)
// We can't use the branch here, because the
// current user might have not updated their
Expand Down

0 comments on commit 7cd24a0

Please sign in to comment.