Skip to content

Handle Duplicate URLs Properly #5

@jaiyankargupta

Description

@jaiyankargupta

Currently, the extension generates a new shortened URL for every request, regardless of whether the URL has already been shortened before. This can lead to multiple shortened URLs for the same original URL, which is not efficient. Implement a check to see if the URL has already been shortened and return the existing shortened URL instead of generating a new one.

Steps to Reproduce:

  1. Install the extension.
  2. Send a message to the extension with the same URL multiple times.
  3. Observe that different shortened URLs are generated each time.

Expected Behavior:
The extension should return the same shortened URL for the same original URL if it has already been shortened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions