Permalink
Browse files

Merge pull request #446 from hokaccha/fix_grepurl

Fix grep url, when click title
  • Loading branch information...
2 parents 7214745 + 3a800c9 commit f0740d2fb882f5b2eba08fb6a0f7fd5120dc5b22 @tj tj committed Jun 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/reporters/html.js
View
2 lib/reporters/html.js
@@ -76,7 +76,7 @@ function HTML(runner) {
if (suite.root) return;
// suite
- var url = location.origin + location.pathname + '?grep=^' + utils.escapeRegexp(suite.fullTitle());
+ var url = location.protocol + '//' + location.host + location.pathname + '?grep=^' + utils.escapeRegexp(suite.fullTitle());
var el = fragment('<li class="suite"><h1><a href="%s">%s</a></h1></li>', url, suite.title);
// container

0 comments on commit f0740d2

Please sign in to comment.