fixed outgoing route to handle links with querystrings in it (using req.query instead of req.url). closes #154.

This commit is contained in:
Julian Lam
2013-08-08 15:04:22 -04:00
parent e2d0ca9669
commit 08a45e40a2
3 changed files with 13 additions and 16 deletions

View File

@@ -173,7 +173,7 @@ var RDB = require('./redis.js'),
var href = this.attr('href');
if (href && !href.match(domain)) {
this.attr('href', domain + 'outgoing?' + href);
this.attr('href', domain + 'outgoing?url=' + encodeURIComponent(href));
if (!isSignature) this.append(' <i class="icon-external-link"></i>');
}
});