Xiang Li před 12 roky
rodič
revize
1119a86cc3
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      server/util.go

+ 1 - 0
server/util.go

@@ -26,6 +26,7 @@ func redirect(hostname string, w http.ResponseWriter, req *http.Request) {
 	// we need the original path and raw query
 	// we need the original path and raw query
 	redirectURL.Path = originalURL.Path
 	redirectURL.Path = originalURL.Path
 	redirectURL.RawQuery = originalURL.RawQuery
 	redirectURL.RawQuery = originalURL.RawQuery
+	redirectURL.Fragment = originalURL.Fragment
 
 
 	log.Debugf("Redirect to %s", redirectURL.String())
 	log.Debugf("Redirect to %s", redirectURL.String())
 	http.Redirect(w, req, redirectURL.String(), http.StatusTemporaryRedirect)
 	http.Redirect(w, req, redirectURL.String(), http.StatusTemporaryRedirect)