mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
added a screening page for external links. removed forced target = _blank on external links for UX consideration
used http://www.deviantart.com/users/outgoing?http://www.nodebb.org/ for inspiration
This commit is contained in:
@@ -278,6 +278,20 @@ var express = require('express'),
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/outgoing', function(req, res) {
|
||||
var url = req.url.split('?');
|
||||
|
||||
if (url[1]) {
|
||||
res.send(app.build_header(res) + templates['outgoing'].parse({
|
||||
url: url[1],
|
||||
home: global.nconf.get('url')
|
||||
}) + templates['footer']);
|
||||
} else {
|
||||
res.status(404);
|
||||
res.redirect(global.nconf.get('relative_path') + '/404');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// These functions are called via ajax once the initial page is loaded to populate templates with data
|
||||
|
||||
Reference in New Issue
Block a user