Skip to content

Commit 6a92dd3

Browse files
authored
Update URLs for official Project Gemini capsule (#342)
* Update URLs for official Project Gemini capsule * Update disabled tests
1 parent 598a9d0 commit 6a92dd3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

client/url_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ var normalizeURLTests = []struct {
2424
{"https://example.com", "https://example.com"},
2525
// Fixing URL tests
2626
// Some commented out due to #324
27-
//{"gemini://gemini.circumlunar.space/%64%6f%63%73/%66%61%71%2e%67%6d%69", "gemini://gemini.circumlunar.space/docs/faq.gmi"},
27+
//{"gemini://geminiprotocol.net/%64%6f%63%73/%66%61%71%2e%67%6d%69", "gemini://geminiprotocol.net/docs/faq.gmi"},
2828
{"gemini://example.com/蛸", "gemini://example.com/%E8%9B%B8"},
29-
//{"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"},
29+
//{"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"},
3030
{"gemini://example.com/?%2Ch%64ello蛸", "gemini://example.com/?%2Chdello%E8%9B%B8"},
3131
// IPv6 tests, see #195
3232
{"gemini://[::1]", "gemini://[::1]/"},

config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func Init() error {
190190

191191
// Setup main config
192192

193-
viper.SetDefault("a-general.home", "gemini://gemini.circumlunar.space")
193+
viper.SetDefault("a-general.home", "gemini://geminiprotocol.net")
194194
viper.SetDefault("a-general.auto_redirect", false)
195195
viper.SetDefault("a-general.http", "default")
196196
viper.SetDefault("a-general.search", "gemini://geminispace.info/search")

config/default.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var defaultConf = []byte(`# This is the default config file.
2525
2626
[a-general]
2727
# Press Ctrl-H to access it
28-
home = "gemini://gemini.circumlunar.space"
28+
home = "gemini://geminiprotocol.net"
2929
3030
# Follow up to 5 Gemini redirects without prompting.
3131
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.

default-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

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

2727
# Follow up to 5 Gemini redirects without prompting.
2828
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.

display/newtab.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Happy browsing!
2929
=> https://github.com/makeworld-the-better-one/amfora/wiki Amfora Wiki [GitHub]
3030
=> gemini://makeworld.space/amfora-wiki/ Amfora Wiki [On Gemini!]
3131
32-
=> gemini://gemini.circumlunar.space Project Gemini
32+
=> gemini://geminiprotocol.net Project Gemini
3333
`
3434

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

0 commit comments

Comments
 (0)