From 1119a86cc337e686514ea87d9a0c34beeb1dcabe Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sun, 20 Oct 2013 11:25:24 -0700 Subject: [PATCH] fix add fragment --- server/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/util.go b/server/util.go index 7c992e873..3a898e53e 100644 --- a/server/util.go +++ b/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 redirectURL.Path = originalURL.Path redirectURL.RawQuery = originalURL.RawQuery + redirectURL.Fragment = originalURL.Fragment log.Debugf("Redirect to %s", redirectURL.String()) http.Redirect(w, req, redirectURL.String(), http.StatusTemporaryRedirect)