Commit 961de290 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixt upload page url in post processing notification email.

parent 13c50b35
Pipeline #79046 passed with stages
in 26 minutes and 32 seconds
......@@ -169,10 +169,14 @@ def api_url(ssl: bool = True):
services.api_base_path.strip('/'))
def gui_url():
def gui_url(page: str = None):
base = api_url(True)[:-3]
if base.endswith('/'):
base = base[:-1]
if page is not None:
return '%s/gui/%s' % (base, page)
return '%s/gui' % base
......
......@@ -1075,7 +1075,7 @@ class Upload(Proc):
'',
'your data %suploaded at %s has completed processing.' % (
'"%s" ' % self.name if self.name else '', self.upload_time.isoformat()), # pylint: disable=no-member
'You can review your data on your upload page: %s' % config.gui_url(),
'You can review your data on your upload page: %s' % config.gui_url(page='uploads'),
'',
'If you encouter any issues with your upload, please let us know and replay to this email.',
'',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment