diff --git a/templates/repo/modelsafety/show.tmpl b/templates/repo/modelsafety/show.tmpl index dfd1bd5b9..a46077443 100644 --- a/templates/repo/modelsafety/show.tmpl +++ b/templates/repo/modelsafety/show.tmpl @@ -861,7 +861,8 @@ $('td.ti-text-form-content.spec div').text(specStr); SPEC && $('td.ti-text-form-content.resorce_type div').text(getListValueWithKey(ACC_CARD_TYPE, SPEC.AccCardType)); } - var oLogHref = $('#-log-down').attr('href'); + var repoPath = {{$.RepoRelPath}}; + var oLogHref = `/api/v1/repos/${repoPath}/cloudbrain`; $('#-log-down').attr('href', oLogHref + `/${res.ID}/download_log_file`); $('.full-log-dialog').attr('data-href', oLogHref + `/${res.ID}/download_log_file`); if (res.ResultJson) {