diff --git a/lib/target_version_graph_hook.rb b/lib/target_version_graph_hook.rb index 74130be..fe9ea5b 100644 --- a/lib/target_version_graph_hook.rb +++ b/lib/target_version_graph_hook.rb @@ -3,7 +3,7 @@ class TargetVersionGraphHook < Redmine::Hook::ViewListener def view_versions_show_bottom(context = { }) if !context[:version].fixed_issues.empty? output = "
#{ l(:label_graphs_total_vs_closed_issues) }" - output << tag("embed", :width => "100%", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'target_version_graph', :id => context[:version])) + output << tag("embed", :width => "100%", :height => 300, :type => "image/svg+xml", :src => File.join(Redmine::Utils.relative_url_root, url_for(:controller => 'graphs', :action => 'target_version_graph', :id => context[:version]))) output << "
" return output end