From ac80d61ab031054785f0aed14f601fb555f49334 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 1 Jun 2021 17:51:57 -0700 Subject: [PATCH] Just use "/search" without window.location.origin. --- frontends/etiquette_flask/templates/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/templates/search.html b/frontends/etiquette_flask/templates/search.html index 0c92bfd..be619ca 100644 --- a/frontends/etiquette_flask/templates/search.html +++ b/frontends/etiquette_flask/templates/search.html @@ -612,7 +612,7 @@ function build_search_params() function submit_search() { const parameters = build_search_params().toString(); - let url = window.location.origin + "/search"; + let url = "/search"; if (parameters !== "") { url += "?" + parameters.toString();