Link to search

main
Bob Mottram 2020-08-12 12:55:45 +00:00
parent 44257aa7a6
commit 53a0784625
1 changed files with 8 additions and 2 deletions

View File

@ -747,7 +747,13 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int,
# add the page title
hashtagSearchForm = htmlHeader(cssFilename, hashtagSearchCSS)
hashtagSearchForm += '<center><h1>#' + hashtag + '</h1></center>'
if nickname:
hashtagSearchForm += '<center>\n' + \
'<h1><a href="/users/' + nickname + '/search">#' + \
hashtag + '</a></h1>\n' + '</center>\n'
else:
hashtagSearchForm += '<center>\n' + \
'<h1>#' + hashtag + '</h1>\n' + '</center>\n'
if startIndex > 0:
# previous page link
@ -758,7 +764,7 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int,
iconsDir + '/pageup.png" title="' + \
translate['Page up'] + \
'" alt="' + translate['Page up'] + \
'"></a></center>'
'"></a></center>\n'
index = startIndex
while index <= endIndex:
postId = lines[index].strip('\n').strip('\r')