summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-06-04 19:20:44 +0200
committerAdam Tauber <asciimoo@gmail.com>2020-06-04 19:21:15 +0200
commitde1b08a941a6834a39159b9a2aa3ff3552df029f (patch)
tree8e4ab076fdce203f2c714657c648560f8978e11d /searx/webapp.py
parent5af873b74ee8ff30d0d70e0e310b094d1568cf58 (diff)
[enh] add unique class for each endpoint - closes #1133
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 46d4e949c..2ba8ccfb8 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -425,6 +425,7 @@ def render(template_name, override_theme=None, **kwargs):
kwargs['brand'] = brand
kwargs['scripts'] = set()
+ kwargs['endpoint'] = 'results' if 'q' in kwargs else request.endpoint
for plugin in request.user_plugins:
for script in plugin.js_dependencies:
kwargs['scripts'].add(script)