Incorrect npm/pnpm/yarn register info when viewed from a package
See original GitHub issueDescribe 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:
- Open Verdaccio Web UI
- Click on any package
- Click on the ( i ) button in the title
- 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:
Screenshot of the incorrect Register Info viewed from the package screen:
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/verdaccio/ui/pull/300#issuecomment-557917138
I will work on this.
In production it should work with
const base = (0, _utils.combineBaseUrl)(protocol, host, url_prefix);
and the newcombineBaseUrl
.