diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bc2e2a..3e18ddb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added link back to IRIS management portal from Settings, Git WebUI pages (#449) - Added Import all and Import All (Force) to basic mode menu (#498) - Improved behavior for commits when attribution settings are not configured (#450) +- Convert URLs in Sync output UI into clickable links (#497) ### Fixed - Changed prompts in configure from 0/1 to no/yes (#461) diff --git a/csp/sync.csp b/csp/sync.csp index bab0d58..3d9918d 100644 --- a/csp/sync.csp +++ b/csp/sync.csp @@ -147,7 +147,8 @@ &js< var outputContainer = document.getElementById('outputBox'); var lineText = #(..QuoteJS(escapedLine))#; - var lineTextNode = document.createTextNode(lineText); + var urlRegex = /(https?:\/\/[^ ]*)/gi; + lineText = lineText.replace(urlRegex, "$1"); outputContainer.innerHTML += lineText + "
"; > }