-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
500 Internal Server Error for non-ASCII Slugs #87
Comments
Are you able to fix this? |
The exception is thrown in BlogController.UpdatePost because it tries to redirect to the updated article which puts the new URL into the Location HTTP header and ASP.NET Core disapproves. The same happens in AddComment and DeleteComment. None of the easy solutions makes me happy so I guess I'd leave it to the authors. Edit: To make it clear, my fix was to add public string GetEncodedLink()
{
return $"/blog/{WebUtility.UrlEncode(Slug)}/";
} to the |
will you make a PR for this? |
Feel free to make one. :) |
Include any non-ASII character in the Slug field such as ň, ش, 𐌸 or an emoji. Saving or creating a post results in 500 Internal Server Error. However, the post is saved and the Slug works as expected.
The text was updated successfully, but these errors were encountered: