Skip to content
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

[Bug] 搜索框中输入特殊字符,无法正常识别与转换 #661

Open
zhanglp0129 opened this issue May 3, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@zhanglp0129
Copy link
Contributor

zhanglp0129 commented May 3, 2024

主题版本

v1.3.5

Bug 类型

该 Bug 是前端问题,且似乎和浏览器无关

浏览器

Chrome / Edge

普遍性

问题描述

该Bug是关于搜索的功能。从站点主页点击搜索,在搜索框中输入特殊字符,例如,+,会出现无法识别。而且此时,url会显示该符号,而不是%2B。

复现步骤

  1. 首先,我的博客有一篇文章,叫做 C++17结构化绑定,我想通过搜索 C++ 这个关键字搜索到这篇文章,就在站点主页的搜索框中输入 C++。
  2. 然而,却搜不到。我又重新搜索 结构化 这个关键字,却搜到了。
  3. 然后,我不从站点主页搜索了,我从搜索结果页面搜索,在搜索框输入 C++,却能搜索到这篇文章。

截图

  • 从站点主页搜索 C++:
    image

  • 搜索结果:
    image

  • 此时url:
    image

  • 从站点主页搜索 结构化:
    image

  • 搜索结果:
    image

  • url:
    image

  • 从搜索页面搜索 C++,搜索结果:
    image

  • url:
    image

附加说明

我觉得就是一个url编码的问题,无法将+转为%2B

@zhanglp0129 zhanglp0129 added the bug Something isn't working label May 3, 2024
@zhanglp0129 zhanglp0129 changed the title [Bug] 搜索框中输入特殊字符,无法正常识别 [Bug] 搜索框中输入特殊字符,无法正常识别与转换 May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant