Skip to content

bug: affiliate tracking link copy fails when Clipboard API is blocked #155

@absalonCRC

Description

@absalonCRC

Bug

After a user applies to an affiliate offer, the offer detail page shows a “Your tracking link” field with a Copy button. That button calls navigator.clipboard.writeText(trackingUrl) directly.

In browsers or embedded contexts where the Clipboard API is unavailable or blocked, the click rejects and the UI does not give the affiliate a successful copy path or any error feedback.

Impact

Affiliates can complete the application flow but fail at the key next step: copying the tracking link they need to share. This affects the affiliate/invite testing flow from the active uGig paid task.

Expected

The tracking-link copy action should fall back to a textarea copy path when the Clipboard API fails, and should only show success after a copy succeeds.

Fix

I will submit a small PR that adds a fallback copy helper and success/error feedback for the tracking-link button.

uGig paid task: 4741218f-a723-46bb-82cb-6516120331ae

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions