Skip to content

Commit 76a78fa

Browse files
committed
Use direct download links when javascript unavailable
Use closer.lua's capability to link directly to the download of a file, rather than to another secondary download page, when initially loading the page. This preserves the same behavior for users when clicking on these links if they have javascript disabled, as when javascript is enabled and replaces these initial links with direct download links from the selected mirror.
1 parent 40acd17 commit 76a78fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pages/downloads.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ available in a future update to this site.
8787
{% assign lnkSuffix = '/accumulo/' | append: linkVers | append: '/' | append: lnkFile %}
8888
<div class="d-flex flex-wrap justify-content-start align-items-start" style="margin-left: 20px; margin-bottom: 5px;">
8989
<div class="btn-group me-2">
90-
<a {{btnDownloadStyle}} href="{{closerLink}}{{lnkSuffix}}" link-suffix="{{lnkSuffix}}">{{lnkFile}}{{glyphSave}}</a>
90+
<a {{btnDownloadStyle}} href="{{closerLink}}{{lnkSuffix}}?action=download" link-suffix="{{lnkSuffix}}">{{lnkFile}}{{glyphSave}}</a>
9191
</div>
9292
<div class="btn-group">
9393
<a {{btnSigStyle}} href="{{downloadsLink}}{{lnkSuffix}}.asc">ASC{{glyphLock}}</a>
@@ -117,7 +117,7 @@ enhancements, and more.
117117
{% assign lnkSuffix = '/accumulo/' | append: linkVers | append: '/' | append: lnkFile %}
118118
<div class="d-flex flex-wrap justify-content-start align-items-start" style="margin-left: 20px; margin-bottom: 5px;">
119119
<div class="btn-group me-2">
120-
<a {{btnDownloadStyle}} href="{{closerLink}}{{lnkSuffix}}" link-suffix="{{lnkSuffix}}">{{lnkFile}}{{glyphSave}}</a>
120+
<a {{btnDownloadStyle}} href="{{closerLink}}{{lnkSuffix}}?action=download" link-suffix="{{lnkSuffix}}">{{lnkFile}}{{glyphSave}}</a>
121121
</div>
122122
<div class="btn-group">
123123
<a {{btnSigStyle}} href="{{downloadsLink}}{{lnkSuffix}}.asc">ASC{{glyphLock}}</a>
@@ -146,7 +146,7 @@ that can be used separately from Accumulo.
146146
{% assign lnkSuffix = '/accumulo/accumulo-access/' | append: linkVers | append: '/' | append: lnkFile %}
147147
<div class="d-flex flex-wrap justify-content-start align-items-start" style="margin-left: 20px; margin-bottom: 5px;">
148148
<div class="btn-group me-2">
149-
<a {{btnDownloadStyle}} href="{{closerLink}}{{lnkSuffix}}" link-suffix="{{lnkSuffix}}">{{lnkFile}}{{glyphSave}}</a>
149+
<a {{btnDownloadStyle}} href="{{closerLink}}{{lnkSuffix}}?action=download" link-suffix="{{lnkSuffix}}">{{lnkFile}}{{glyphSave}}</a>
150150
</div>
151151
<div class="btn-group">
152152
<a {{btnSigStyle}} href="{{downloadsLink}}{{lnkSuffix}}.asc">ASC{{glyphLock}}</a>

0 commit comments

Comments
 (0)