mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
fixed outgoing route to handle links with querystrings in it (using req.query instead of req.url). closes #154.
This commit is contained in:
@@ -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>');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user