Permalink
Browse files

Make sure all generated urls are done so through LinkHelper#path_to.

  • Loading branch information...
tobie committed May 14, 2010
1 parent 2fda716 commit a0278e3fe36ef599e75771983cbfc4e2721264e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/html/item_index.js.erb
@@ -1,6 +1,6 @@
if (!window.PDoc) window.PDoc = {};
PDoc.elements = {
<%= @root.registry.map do |k, v|
- "'#{k}': { 'name': '#{k}', 'type': '#{v.type}', 'path': '#{v.url}' }"
+ "'#{k}': { 'name': '#{k}', 'type': '#{v.type}', 'path': '#{path_to(v)}' }"
end.join(",\n") %>
};

0 comments on commit a0278e3

Please sign in to comment.