Fixed a bug where searching on localized name would fail to show on the search. Fixed a bug where extra spaces would cause the search results not to show properly. (#682)
This commit is contained in:
parent
c0a8d092e2
commit
f3ebc21b97
4 changed files with 15 additions and 3 deletions
|
|
@ -226,7 +226,7 @@ namespace API.Controllers
|
|||
[HttpGet("search")]
|
||||
public async Task<ActionResult<IEnumerable<SearchResultDto>>> Search(string queryString)
|
||||
{
|
||||
queryString = queryString.Trim().Replace(@"%", "");
|
||||
queryString = Uri.UnescapeDataString(queryString).Trim().Replace(@"%", string.Empty);
|
||||
|
||||
var userId = await _unitOfWork.UserRepository.GetUserIdByUsernameAsync(User.GetUsername());
|
||||
// Get libraries user has access to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue