Skip to content

Commit

Permalink
Update URLs for official Project Gemini capsule (#342)
Browse files Browse the repository at this point in the history
* Update URLs for official Project Gemini capsule

* Update disabled tests
  • Loading branch information
marcransome authored Nov 3, 2023
1 parent 598a9d0 commit 6a92dd3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions client/url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ var normalizeURLTests = []struct {
{"https://example.com", "https://example.com"},
// Fixing URL tests
// Some commented out due to #324
//{"gemini://gemini.circumlunar.space/%64%6f%63%73/%66%61%71%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/faq.gmi"},
//{"gemini://geminiprotocol.net/%64%6f%63%73/%66%61%71%2e%67%6d%69", "gemini://geminiprotocol.net/docs/faq.gmi"},
{"gemini://example.com/蛸", "gemini://example.com/%E8%9B%B8"},
//{"gemini://gemini.circumlunar.space/%64%6f%63%73/;;.'%66%61%71蛸%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/%3B%3B.%27faq%E8%9B%B8.gmi"},
//{"gemini://geminiprotocol.net/%64%6f%63%73/;;.'%66%61%71蛸%2e%67%6d%69", "gemini://geminiprotocol.net/docs/%3B%3B.%27faq%E8%9B%B8.gmi"},
{"gemini://example.com/?%2Ch%64ello蛸", "gemini://example.com/?%2Chdello%E8%9B%B8"},
// IPv6 tests, see #195
{"gemini://[::1]", "gemini://[::1]/"},
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func Init() error {

// Setup main config

viper.SetDefault("a-general.home", "gemini://gemini.circumlunar.space")
viper.SetDefault("a-general.home", "gemini://geminiprotocol.net")
viper.SetDefault("a-general.auto_redirect", false)
viper.SetDefault("a-general.http", "default")
viper.SetDefault("a-general.search", "gemini://geminispace.info/search")
Expand Down
2 changes: 1 addition & 1 deletion config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var defaultConf = []byte(`# This is the default config file.
[a-general]
# Press Ctrl-H to access it
home = "gemini://gemini.circumlunar.space"
home = "gemini://geminiprotocol.net"
# Follow up to 5 Gemini redirects without prompting.
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.
Expand Down
2 changes: 1 addition & 1 deletion default-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

[a-general]
# Press Ctrl-H to access it
home = "gemini://gemini.circumlunar.space"
home = "gemini://geminiprotocol.net"

# Follow up to 5 Gemini redirects without prompting.
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.
Expand Down
2 changes: 1 addition & 1 deletion display/newtab.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Happy browsing!
=> https://github.com/makeworld-the-better-one/amfora/wiki Amfora Wiki [GitHub]
=> gemini://makeworld.space/amfora-wiki/ Amfora Wiki [On Gemini!]
=> gemini://gemini.circumlunar.space Project Gemini
=> gemini://geminiprotocol.net Project Gemini
`

// Read the new tab content from a file if it exists or fallback to a default page.
Expand Down

0 comments on commit 6a92dd3

Please sign in to comment.