Skip to content

[Blazor][Fixes #14999] Razor Class Library Static Assets with spaces do not resolve #15024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 15, 2019

Conversation

javiercn
Copy link
Member

No description provided.

@@ -46,7 +46,7 @@ public IDirectoryContents GetDirectoryContents(string subpath)
}
else
{
return InnerProvider.GetDirectoryContents(physicalPath);
return InnerProvider.GetDirectoryContents(physicalPath.Value);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was being implicitly converted to "string" and that would encode spaces as "%20". The fix simply passes down the raw value (which was already decoded by hosting) to the underlying provider

@javiercn javiercn merged commit 579f30f into release/3.1 Oct 15, 2019
@javiercn javiercn deleted the javiercn/static-web-assets-spaces-fix branch October 15, 2019 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants