From 3de1b3583da1f55dbdf7588768f0e6baa196955b Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Mon, 1 Feb 2016 16:15:53 +0100 Subject: [PATCH] use the api v3 path helper --- lib/api/v3/work_packages/work_package_representer.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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