Skip to content

Commit

Permalink
Disable relative linking if object is root object.
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Oct 26, 2014
1 parent 7244764 commit 95ef7c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/yard/templates/helpers/html_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ def url_for(obj, anchor = nil, relative = true)
objpath = serializer.serialized_path(obj)
return link unless objpath

relative = false if object == Registry.root
if relative
fromobj = object
if object.is_a?(CodeObjects::Base) &&
Expand Down

0 comments on commit 95ef7c7

Please sign in to comment.