Permalink
Browse files

Use subdomain in link to error.

  • Loading branch information...
1 parent 8f8c6e1 commit d17798e342c52b1282814882df881dcaa1bcf31b @tristandunn tristandunn committed Nov 6, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/templates/rescue.erb
View
4 lib/templates/rescue.erb
@@ -50,8 +50,8 @@ var Hoptoad = {
var element = document.createElement('a');
element.id = 'hoptoad';
- element.href = 'http://' + this.host + '/projects/' + error.project_id +
- '/errors/' + error.id;
+ element.href = 'http://' + error.subdomain + '.' + this.host +
+ '/projects/' + error.project_id + '/errors/' + error.id;
element.appendChild(text);
body.insertBefore(element, body.firstChild);

0 comments on commit d17798e

Please sign in to comment.