Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix(docs): find broken anchors in absolute doc urls

as-op48d7c825f4a3
diff --git a/script/docs/check_links b/script/docs/check_links
index 7bc27e1cb20..9bb54e765ce 100755
--- a/script/docs/check_links
+++ b/script/docs/check_links
@@ -168,7 +168,8 @@ class DocsChecker
full_path = File.expand_path(uri.path.sub("/docs", "."), @root_path)
relative_url = Pathname.new(full_path).relative_path_from("#{path}/").to_s
- "#{relative_url}/##{uri.fragment}" unless uri.fragment.nil?
+ return "#{relative_url}/##{uri.fragment}" unless uri.fragment.nil?
+
relative_url
end