isundil před 2 roky
rodič
revize
f9456f90f4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);
 }