Nugetgallery: Breadcrumb link to package details from Report Abuse page doesn't for packages with additional build metadata in version string

Created on 1 Aug 2020  路  2Comments  路  Source: NuGet/NuGetGallery

Describe the bug

Applies to packages with additional metadata in their version string.

After clicking on "Report" link on package details page, breadcrumb to get back to the package details page doesn't work if the package version string has additional build metadata. This is likely because the additional build metadata is appended to the URL when it shouldn't be.

Example of version string with additional build metadata:
image

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://www.nuget.org/packages/NuGet.Packaging/5.6.0/ReportAbuse
  2. Click breadcrumb back to the package details page in the top left corner
    image
  1. Get Error 404
  2. See that it works if you remove the additional build metadata from the URL

URL with metadata (wrong): https://www.nuget.org/packages/NuGet.Packaging/5.6.0%2b636570e68732c1f718ede9ca07802d7b1cc69aa0

Correct URL: https://www.nuget.org/packages/NuGet.Packaging/5.6.0

Expected behavior

Breadcrumb link back to package details page should work.

GIF of bug repro with NuGet.Packaging

Link back from Report page doesn't work with package versions with build metadata

Additional context

Additional examples for repro:

Bug UI improvement Up for Grabs Verified-Dev Verified-Int Verified-Prod

Most helpful comment

This change is deployed to nuget.org. Thanks again for your contribution!

All 2 comments

@chgill-MSFT I have submitted #8157 pull request to fix this issue.

This change is deployed to nuget.org. Thanks again for your contribution!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sergio0694 picture Sergio0694  路  3Comments

xied75 picture xied75  路  5Comments

gep13 picture gep13  路  4Comments

yishaigalatzer picture yishaigalatzer  路  4Comments

skofman1 picture skofman1  路  3Comments