Skip to content

Commit 36d2904

Browse files
committed
fix: dashboard unified download link
1 parent 32be6c8 commit 36d2904

File tree

1 file changed

+4
-3
lines changed
  • ui/src/pages/Admin/Dashboard/components/HealthStatus

1 file changed

+4
-3
lines changed

ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {
3737
const { siteInfo } = siteInfoStore();
3838
let isLatest = false;
3939
let hasNewerVersion = false;
40+
const downloadUrl = `https://answer.apache.org/download?from_version=${version}`;
4041
if (version && remote_version) {
4142
isLatest = gte(version, remote_version);
4243
hasNewerVersion = gt(remote_version, version);
@@ -53,7 +54,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {
5354
<a
5455
className="ms-1 badge rounded-pill text-bg-success"
5556
target="_blank"
56-
href="https://github.com/apache/answer/releases"
57+
href={downloadUrl}
5758
rel="noreferrer">
5859
{t('latest')}
5960
</a>
@@ -62,7 +63,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {
6263
<a
6364
className="ms-1 badge rounded-pill text-bg-warning"
6465
target="_blank"
65-
href={`https://answer.apache.org/download?from_version=${version}`}
66+
href={downloadUrl}
6667
rel="noreferrer">
6768
{t('update_to')} {remote_version}
6869
</a>
@@ -71,7 +72,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {
7172
<a
7273
className="ms-1 badge rounded-pill text-bg-danger"
7374
target="_blank"
74-
href="https://github.com/apache/answer/releases"
75+
href={downloadUrl}
7576
rel="noreferrer">
7677
{t('check_failed')}
7778
</a>

0 commit comments

Comments
 (0)