a couple minor 'tweaks' to the plugin system so that it works with npm installed plugins

This commit is contained in:
Julian Lam
2013-08-22 09:50:29 -04:00
parent 7975844e4d
commit 2d3d0f688a
3 changed files with 37 additions and 26 deletions

View File

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