diff --git a/daemon.py b/daemon.py index da53f0b8..ac28fd97 100644 --- a/daemon.py +++ b/daemon.py @@ -1363,7 +1363,8 @@ class PubServer(BaseHTTPRequestHandler): return # remove any trailing slashes from the path - self.path=self.path.replace('/outbox/','/outbox').replace('/inbox/','/inbox').replace('/shares/','/shares').replace('/sharedInbox/','/sharedInbox') + if not self.path.endswith('confirm'): + self.path=self.path.replace('/outbox/','/outbox').replace('/inbox/','/inbox').replace('/shares/','/shares').replace('/sharedInbox/','/sharedInbox') cookie=None if self.headers.get('Cookie'): diff --git a/webinterface.py b/webinterface.py index 75923b41..77175bf5 100644 --- a/webinterface.py +++ b/webinterface.py @@ -768,6 +768,12 @@ def htmlProfileAfterSearch(baseDir: str,path: str,httpPrefix: str, \ profileStyle = cssFile.read().replace('image.png',profileBackgroundImage) + # url to return to + backUrl=path + if not backUrl.endswith('/inbox'): + backUrl+='/inbox' + + print('************************