Issue :
Appending a + to a Kutt URL shows basic target information. This page is currently very minimalist.
Improvement : Enhance the url_info.hbs view to show more metadata, such as the creation date and whether the link is password-protected, without revealing the stats (which are private).
File Path : server/handlers/links.handler.js (Update the redirect function)
Code Change :
// Inside redirect function, step 5
if (isRequestingInfo && !link.password) {
if (req.isHTML) {
res.render("url_info", {
title: "Short link information",
target: link.target,
link: utils.getShortURL(link.address, link.domain).link,
createdAt: link.created_at, // Add this
expires: link.expire_in // Add this
});
return;
}
}
Issue :
Appending a + to a Kutt URL shows basic target information. This page is currently very minimalist.
Improvement : Enhance the
url_info.hbsview to show more metadata, such as the creation date and whether the link is password-protected, without revealing the stats (which are private).File Path :
server/handlers/links.handler.js(Update theredirectfunction)Code Change :