This is an automated email from the git hooks/post-receive script. New commit to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git commit f0a45f10fa29a609f3acb8ff12ef90ea696599ee Author: Benjamin <poussin@codelutin.com> Date: Sat May 16 01:37:08 2020 +0200 correction des urls en dur en localhost --- pkg/http/opensearchResource.go | 6 +++--- web/src/App.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/http/opensearchResource.go b/pkg/http/opensearchResource.go index 9855b33..b161642 100644 --- a/pkg/http/opensearchResource.go +++ b/pkg/http/opensearchResource.go @@ -78,7 +78,7 @@ var actions = map[string]func(w http.ResponseWriter, r *http.Request, currentUse publicalias := getOrEmpty(args, 4) lang := getOrEmpty(args, 5) - url := fmt.Sprintf("http://localhost:8080/edit/new?uri=%s&description=%s&tags=%s&privatealias=%s&publicalias=%s&lang=%s", uri, description, tags, privatealias, publicalias, lang) + url := fmt.Sprintf("%s/edit/new?uri=%s&description=%s&tags=%s&privatealias=%s&publicalias=%s&lang=%s", BowPublicURL, uri, description, tags, privatealias, publicalias, lang) http.Redirect(w, r, url, http.StatusFound) }, constant.RedirectAlias: func(w http.ResponseWriter, r *http.Request, currentUser model.BowUser, prefix string, ask string) { @@ -101,7 +101,7 @@ var actions = map[string]func(w http.ResponseWriter, r *http.Request, currentUse io.WriteString(w, s) }, constant.SearchFulltext: func(w http.ResponseWriter, r *http.Request, currentUser model.BowUser, prefix string, ask string) { - url := fmt.Sprintf("http://localhost:8080/?fulltext=%s", ask) + url := fmt.Sprintf("%s/?fulltext=%s", BowPublicURL,ask) http.Redirect(w, r, url, http.StatusFound) }, constant.SuggestionFulltext: func(w http.ResponseWriter, r *http.Request, currentUser model.BowUser, prefix string, ask string) { @@ -109,7 +109,7 @@ var actions = map[string]func(w http.ResponseWriter, r *http.Request, currentUse //http.Redirect(w, r, uri, http.StatusFound) }, constant.SearchTag: func(w http.ResponseWriter, r *http.Request, currentUser model.BowUser, prefix string, ask string) { - url := fmt.Sprintf("http://localhost:8080/?tags=%s", ask) + url := fmt.Sprintf("%s/?tags=%s", BowPublicURL, ask) http.Redirect(w, r, url, http.StatusFound) }, constant.SuggestionTag: func(w http.ResponseWriter, r *http.Request, currentUser model.BowUser, prefix string, ask string) { diff --git a/web/src/App.vue b/web/src/App.vue index c31b580..daf25ae 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -36,7 +36,7 @@ class App extends Vue { link.title = 'bow' link.type = 'application/opensearchdescription+xml' link.rel = 'search' - link.href = `${location.protocol}//${location.hostname}:8000/api/v1/opensearch?bow-token=${token}` + link.href = `${location.protocol}//${location.hostname}/api/v1/opensearch?bow-token=${token}` document.head.appendChild(link) } } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.