Skip to content

Commit

Permalink
update search path
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4c6565 committed Nov 24, 2023
1 parent 5bc10c4 commit 3c8bc2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ http {

absolute_redirect off;

location /search/ {
location /docs/search/ {
if ($request_method != GET) {
return 405;
}
proxy_pass http://elasticsearch:9200/;
}

rewrite ^(?!(\/docs|\/search))\/(.*)$ /docs/$2 permanent;
rewrite ^(?!\/docs)\/(.*)$ /docs/$1 permanent;
rewrite ^\/docs\/(((?!index).)*)\.html$ /docs/$1/ permanent;

rewrite ^/docs/cloud/(.*)$ /docs/ecloud/$1 permanent;
Expand Down
2 changes: 1 addition & 1 deletion source/_themes/ukf/static/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
App = {};
App.config = {
url: '/search/',
url: '/docs/search/',
version: '2-3'
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<Url type="text/html"
method="get"
template="https://docs.ukfast.co.uk/search.html?check_keywords=yes&amp;area=default&amp;q={searchTerms}">
template="https://www.ans.co.uk/docs/search.html?check_keywords=yes&amp;area=default&amp;q={searchTerms}">
</Url>
<OutputEncoding>UTF-8</OutputEncoding>
<InputEncoding>UTF-8</InputEncoding>
Expand Down

0 comments on commit 3c8bc2f

Please sign in to comment.