summaryrefslogtreecommitdiff
path: root/searx/templates/simple/elements/search_url.html
diff options
context:
space:
mode:
Diffstat (limited to 'searx/templates/simple/elements/search_url.html')
-rw-r--r--searx/templates/simple/elements/search_url.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/searx/templates/simple/elements/search_url.html b/searx/templates/simple/elements/search_url.html
new file mode 100644
index 000000000..b3994fd94
--- /dev/null
+++ b/searx/templates/simple/elements/search_url.html
@@ -0,0 +1,18 @@
+<div id="search_url" role="complementary" aria-labelledby="search_url-title">
+ <details>
+ <summary class="title" id="search_url-title">{{ _('Search URL') }}</summary>
+ <div class="selectable_url">
+ <pre>{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&amp;language={{ current_language }}&amp;time_range={{ time_range }}&amp;safesearch={{ safesearch }}
+ {%- if pageno > 1 -%}
+ &amp;pageno={{ pageno }}
+ {%- endif -%}
+ {%- if selected_categories -%}
+ &amp;categories={{ selected_categories|join(",") | replace(' ','+') }}
+ {%- endif -%}
+ {%- if timeout_limit -%}
+ &amp;timeout_limit={{ timeout_limit|urlencode }}
+ {%- endif -%}
+ </pre>
+ </div>
+ </details>
+</div>