Skip to content

Link of a scoped package not opened correctly #97

@rzarviv

Description

@rzarviv

Clicking on a OpenSSF scorecard (a.k.a deps-dev) link of a scoped npm package (for example: @angular/cli) leads o a "package not found" page.

Steps to reproduce:

  1. Visit StackOverflow and find a page that contains a code section with a scoped package (for example: this link)
  2. Open the extension and click on the "open link" icon in OpenSSF Scorecard section. A new tab should be opened stating that the package could not be found.

solution
The following background/advisory/deps-dev.js causes the problem:
image

replacing name with encodeURIComponent(name) should solve the problem.

Metadata

Metadata

Assignees

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