Redirect to local hashtag

main
Bob Mottram 2023-02-20 12:00:29 +00:00
parent 18bbc4f647
commit 0d814b28a4
1 changed files with 3 additions and 1 deletions

View File

@ -18947,7 +18947,9 @@ class PubServer(BaseHTTPRequestHandler):
if os.path.isfile(tags_filename): if os.path.isfile(tags_filename):
# redirect to the local hashtag screen # redirect to the local hashtag screen
self.server.getreq_busy = False self.server.getreq_busy = False
self._redirect_headers(hashtag_url, cookie, calling_domain) redirect_url = \
'/users/' + nickname + '/tags/' + hashtag + '?page=1'
self._redirect_headers(redirect_url, cookie, calling_domain)
else: else:
# redirect to the upstream hashtag url # redirect to the upstream hashtag url
self.server.getreq_busy = False self.server.getreq_busy = False