diff --git a/lib/api/v3/work_packages/work_package_representer.rb b/lib/api/v3/work_packages/work_package_representer.rb index c6be22bd64..4a1e1b8a6f 100644 --- a/lib/api/v3/work_packages/work_package_representer.rb +++ b/lib/api/v3/work_packages/work_package_representer.rb @@ -239,7 +239,10 @@ module API links :children do visible_children.map do |child| - { href: "#{root_path}api/v3/work_packages/#{child.id}", title: child.subject } + { + href: api_v3_paths.work_package(child.id), + title: child.subject + } end unless visible_children.empty? end