Correct API URL shown in data browser sidebar
authorTom Hughes <tom@compton.nu>
Sat, 11 Aug 2012 09:49:38 +0000 (10:49 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 11 Aug 2012 09:49:38 +0000 (10:49 +0100)
app/views/browse/start.js.erb

index 8f04d7a8344a90b9ae95224cc5d66973701fa162..1a32a3a79a2dff10f98f936c59893c09f8c911e8 100644 (file)
@@ -295,7 +295,7 @@ function dataLoaded() {
     browseObjectList.appendChild(list);
 
     var link = document.createElement("a");
-    link.href = this.url;
+    link.href = this.protocol.url;
     link.appendChild(document.createTextNode("<%=j t 'browse.start_rjs.object_list.api' %>"));
     browseObjectList.appendChild(link);