question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect npm/pnpm/yarn register info when viewed from a package

See original GitHub issue

Describe the bug

Pressing the ( i ) button in the title bar shows the register info for npm, pnpm and yarn. The url here is correct. However if you click on a package to view the package details and then click the ( i ) button in the title bar you will see incorrect urls for the register info.

The incorrect url will contain the package’s path, for example https://your.npm.repo/-/web/detail/your-package instead of https://your.npm.repo/

To Reproduce

Steps to reproduce the behavior:

  1. Open Verdaccio Web UI
  2. Click on any package
  3. Click on the ( i ) button in the title
  4. Observe incorrect urls

Expected behavior

The repository url should always point to the base url.

Screenshots

Screenshot of the correct Register Info viewed from the home screen:

image

Screenshot of the incorrect Register Info viewed from the package screen:

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
DanielRufcommented, Jan 8, 2020
1reaction
DanielRufcommented, Jan 8, 2020

In production it should work with const base = (0, _utils.combineBaseUrl)(protocol, host, url_prefix); and the new combineBaseUrl.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found