Skip to content

Commit

Permalink
Merge pull request #978 from xylar/fix-urls-for-pm
Browse files Browse the repository at this point in the history
Add a trailing slash to printed URLs
  • Loading branch information
xylar authored Jan 12, 2024
2 parents e7a1628 + 45d1a7f commit b2dcdfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mpas_analysis/shared/html/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def generate_html(config, analyses, controlConfig, customConfigFiles):
html_dir = config.get('output', 'htmlSubdirectory')
if html_dir.startswith(base_path):
url = base_url + html_dir[len(base_path):]
if not url.endswith('/'):
# lack of trailing '/' is causing issues on NERSC's portal
url = f'{url}/'
print(f'Web page: {url}')
if url is None:
print("Done.")
Expand Down

0 comments on commit b2dcdfb

Please sign in to comment.