diff --git a/static/js/fetchurls.js b/static/js/fetchurls.js index f14bdc0..23f5768 100755 --- a/static/js/fetchurls.js +++ b/static/js/fetchurls.js @@ -21,14 +21,14 @@ function fetchUrls() { let urlDisplay; if (url.status === 301) { // For 301 status code, use redirectpath - urlDisplay = `
${url.id} ${url.path} - REDIRECTS TO: ${url.redirectpath} - http code: ${url.status} progress: ${url.progress} ${url.data}
`; + urlDisplay = `${url.id} ${url.path} - REDIRECTS TO: ${url.redirectpath} - http code: ${url.status} progress: ${url.progress}% ${url.data}
`; } else if (url.status === 302) { // For 302 status code, concatenate path and redirectpath let targetPath = url.redirectpath ? url.path + url.redirectpath : url.path; - urlDisplay = `${url.id} ${url.path} - REDIRECTS TO: ${targetPath} - http code: ${url.status} progress: ${url.progress} ${url.data}
`; + urlDisplay = `${url.id} ${url.path} - REDIRECTS TO: ${targetPath} - http code: ${url.status} progress: ${url.progress}% ${url.data}
`; } else { // For other status codes (200), use the original path - urlDisplay = `${url.id} ${url.path} - http code: ${url.status} progress: ${url.progress.toFixed(0)}% ${url.data}
`; + urlDisplay = `${url.id} ${url.path} - http code: ${url.status} progress: ${url.progress}% ${url.data}
`; } container.innerHTML += urlDisplay;