mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
Fix relay sitemap after the /r/... switch
This commit is contained in:
@@ -16,7 +16,7 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
|
||||
hostname := code[2:]
|
||||
typ := "relay"
|
||||
if strings.HasSuffix(hostname, ".xml") {
|
||||
hostname = code[:len(hostname)-4]
|
||||
hostname = hostname[:len(hostname)-4]
|
||||
typ = "relay_sitemap"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user