Explorar el Código

Fix #1 url shortener

isundil hace 2 años
padre
commit
f9456f90f4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 }