A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: dashboard unified download link
shuai36d2904bc47a
diff --git a/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx b/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsxindex a42eb2ea..137fcd2e 100644--- a/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx+++ b/ui/src/pages/Admin/Dashboard/components/HealthStatus/index.tsx@@ -37,6 +37,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {const { siteInfo } = siteInfoStore();let isLatest = false;let hasNewerVersion = false;+ const downloadUrl = `https://answer.apache.org/download?from_version=${version}`;if (version && remote_version) {isLatest = gte(version, remote_version);hasNewerVersion = gt(remote_version, version);@@ -53,7 +54,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {<aclassName="ms-1 badge rounded-pill text-bg-success"target="_blank"- href="https://github.com/apache/answer/releases"+ href={downloadUrl}rel="noreferrer">{t('latest')}</a>@@ -62,7 +63,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {<aclassName="ms-1 badge rounded-pill text-bg-warning"target="_blank"- href={`https://answer.apache.org/download?from_version=${version}`}+ href={downloadUrl}rel="noreferrer">{t('update_to')} {remote_version}</a>@@ -71,7 +72,7 @@ const HealthStatus: FC<IProps> = ({ data }) => {<aclassName="ms-1 badge rounded-pill text-bg-danger"target="_blank"- href="https://github.com/apache/answer/releases"+ href={downloadUrl}rel="noreferrer">{t('check_failed')}</a>