Check for search

main
Bob Mottram 2019-12-13 20:58:16 +00:00
parent c832b3d1eb
commit a54c25fe01
1 changed files with 2 additions and 1 deletions

View File

@ -1668,7 +1668,8 @@ class PubServer(BaseHTTPRequestHandler):
# search for a fediverse address, shared item or emoji
# from the web interface by selecting search icon
if htmlGET and '/users/' in self.path:
if self.path.endswith('/search'):
if self.path.endswith('/search') or \
'/search?' in self.path:
# show the search screen
msg=htmlSearch(self.server.translate, \
self.server.baseDir,self.path).encode()