func()

in infra/docker/stack/browser/redirect/redirect.go [19:26]


func (server *Server) redirect(w http.ResponseWriter, req *http.Request) {
	target := server.url + req.URL.Path
	if len(req.URL.RawQuery) > 0 {
		target += "?" + req.URL.RawQuery
	}
	log.Printf("redirect to: %s ...", target)
	http.Redirect(w, req, target, http.StatusMovedPermanently)
}