Skip to content

Enhancement: Detailed "Link Info" Page (The + feature) #982

@codeCraft-Ritik

Description

@codeCraft-Ritik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions