branch bow-v2-go updated (235505f -> f0a45f1)
This is an automated email from the git hooks/post-receive script. New change to branch bow-v2-go in repository bow. See https://gitlab.nuiton.org/chorem/bow.git from 235505f correction policy sur bookmark ajout preference (debut) amelioration affichage bookmark recherche par clique sur tag (et mise a jour zone de recherche) new f0a45f1 correction des urls en dur en localhost The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit f0a45f10fa29a609f3acb8ff12ef90ea696599ee Author: Benjamin <poussin@codelutin.com> Date: Sat May 16 01:37:08 2020 +0200 correction des urls en dur en localhost Summary of changes: pkg/http/opensearchResource.go | 6 +++--- web/src/App.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
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>.
participants (1)
-
chorem.org scm