|
|
@@ -26,7 +26,7 @@ async function renderPublicPage(app, req, res, entity) {
|
|
|
return await app.routerUtils.staticDownload(res, app.getData(entity.privId), data.name, data.type);
|
|
|
}
|
|
|
else if (entity.type === 'short')
|
|
|
- return res.end(entity.data); // FIXME stats + ?rel
|
|
|
+ return app.routerUtils.redirect(res, entity.data);
|
|
|
app.routerUtils.onInternalError(res, "Unknown type: " +entity.type);
|
|
|
}
|
|
|
|