This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new ce135f1  tweak deadlink checker for relative links
ce135f1 is described below

commit ce135f14fb03de9ecd807a252f2be501ebe1e9f3
Author: Paul King <[email protected]>
AuthorDate: Fri Jan 31 14:49:31 2025 +1000

    tweak deadlink checker for relative links
---
 buildSrc/src/main/groovy/util/CheckLinks.groovy | 1 +
 1 file changed, 1 insertion(+)

diff --git a/buildSrc/src/main/groovy/util/CheckLinks.groovy 
b/buildSrc/src/main/groovy/util/CheckLinks.groovy
index 76af119..c06c381 100644
--- a/buildSrc/src/main/groovy/util/CheckLinks.groovy
+++ b/buildSrc/src/main/groovy/util/CheckLinks.groovy
@@ -54,6 +54,7 @@ class CheckLinks {
             if (rejected || !url) {
                 def path = "file:///${new File("$baseDir/${currentPath ? 
currentPath + '/' : ''}$link").canonicalPath.replace('\\', '/')}"
                 url = URI.create(path).toURL()
+                link = url.file
             }
             logger?.debug("Checking URL: $url")
             def cx = url.openConnection()

Reply via email to