Browse Source

Fix #1 url shortener

isundil 2 years ago
parent
commit
f9456f90f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      router/input.js

+ 1 - 1
router/input.js

@@ -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);
 }