Skip to content

Commit

Permalink
fix: fix path to bundles on relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 15, 2020
1 parent b44a1a0 commit 43c36a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aslo4-static/templates/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h3>Tags</h3>
style="margin-bottom: 0.25rem">
<i class="fab fa-git-alt"></i> Source Code
</a>
<a type="application/zip" href="{{ bundle_path }}" class="btn btn-primary saas-activity-download-button">
<a type="application/zip" href="{{ catalog.prefix}}{{ bundle_path }}" class="btn btn-primary saas-activity-download-button">
<i class="fa fa-download"></i> Download
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions aslo4/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,11 +739,11 @@ def generate_web_page(
licenses=''.join(html_parsed_licenses),
description_html_div='',
# TODO: Extract from README.md
bundle_path='../bundles/{}'.format(
bundle_path='/bundles/{}'.format(
_bundle_path.split(os.path.sep)[-1]),
tag_list_html_formatted=''.join(tags_html_list),
author_list_html_formatted=''.join(authors_html_list),
icon_path='../icons/{}'.format(
icon_path='/icons/{}'.format(
_icon_path.split(os.path.sep)[-1]),
new_feature_html_div=new_in_this_version_parsed,
changelog_html_div=changelog_formatted_html,
Expand Down

0 comments on commit 43c36a8

Please sign in to comment.