Check path

merge-requests/30/head
Bob Mottram 2021-02-23 17:59:56 +00:00
parent 4e6d9d2d45
commit 10218086d5
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ def htmlPersonOptions(defaultTimeline: str,
backPath = '/users/' + nickname + '/' + defaultTimeline backPath = '/users/' + nickname + '/' + defaultTimeline
if 'moderation' in backToPath: if 'moderation' in backToPath:
backPath = '/users/' + nickname + '/moderation' backPath = '/users/' + nickname + '/moderation'
if authorized: if authorized and originPathStr == '/users/' + nickname:
optionsStr += \ optionsStr += \
' <a href="' + backPath + '"><button type="button" ' + \ ' <a href="' + backPath + '"><button type="button" ' + \
'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \ 'class="buttonIcon" name="submitBack">' + translate['Go Back'] + \