Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use subdomain in link to error.

  • Loading branch information...
commit d17798e342c52b1282814882df881dcaa1bcf31b 1 parent 8f8c6e1
@tristandunn tristandunn authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.