404 for package name ending in .CS #657

Closed
TimLovellSmith opened this Issue Nov 26, 2012 · 1 comment

Projects

None yet

2 participants

@TimLovellSmith
NuGet member

on nuget.org:

Searching packages

http://nuget.org/packages?q=1&sortOrder=relevance&page=20&prerelease=False

will find "Visual ThermalLabel Editor for .NET - Windows Forms C# Sample" with this link,

http://nuget.org/packages/Neodynamic.Windows.ThermalLabelEditor.Sample.WinForms.CS

but that page is a 404.

@jeffhandley
NuGet member

We need to put trailing slashes on every package link we produce so that this can be worked around. We don't want to allow requests with .cs or .config extensions, for security of the site, but we should make sure all packages can be browsed to.

If you go to http://nuget.org/packages/Neodynamic.Windows.ThermalLabelEditor.Sample.WinForms.CS/ it will work. So we just need to make sure whenever we generate a URL to a page that includes the package ID in the URL, we use a trailing slash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment