Skip to content

"Download" link is downloading the contract PDF twice #94

@farism

Description

@farism

https://pactsafe.github.io/pactsafe-react-sdk/

clicking on the "Download" link here downloads the PDF twice.

Looking at the html is interesting, there is both an href and a onclick=window.open

<a href="https://api.pactsafe.com/v1.1/download/contracts/36073/rendered/672bb6393d98eaf03bd2f042" target="_blank" rel="noopener" class="ps-download-link" onclick="window.open('https://api.pactsafe.com/v1.1/download/contracts/36073/rendered/672bb6393d98eaf03bd2f042')">Download</a>

I don't actually think this is something specific to the React SDK but probably in the underlying JS snippet that renders the UI.

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