diff --git a/changedetectionio/templates/base.html b/changedetectionio/templates/base.html index 93ae11d14..a2d39a5a5 100644 --- a/changedetectionio/templates/base.html +++ b/changedetectionio/templates/base.html @@ -321,9 +321,14 @@ (SCRIPT_NAME), so no client-side URL building is needed. #}
diff --git a/changedetectionio/tests/test_search.py b/changedetectionio/tests/test_search.py index df4560699..e7adcb1f0 100644 --- a/changedetectionio/tests/test_search.py +++ b/changedetectionio/tests/test_search.py @@ -1,5 +1,6 @@ from flask import url_for from .util import set_original_response, set_modified_response, live_server_setup +import re import time @@ -72,6 +73,7 @@ def test_search_in_tag_limit(client, live_server, measure_memory_usage, datastor assert urls[1].split(' ')[0].encode('utf-8') not in res.data, urls[0].encode('utf-8') + def test_search_modal_form_action(client, live_server, measure_memory_usage, datastore_path): # The search modal submits as a plain GET form, so its action has to carry the # reverse-proxy sub-path (SCRIPT_NAME), otherwise search jumps to the host root. @@ -80,3 +82,33 @@ def test_search_modal_form_action(client, live_server, measure_memory_usage, dat res = client.get("/", base_url="http://localhost/sub-path") assert b'