Opened 10 years ago
Last modified 4 years ago
#31728 new defect (bug)
Search bug (Cyrillic)
Reported by: | kazumy | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.1.1 |
Component: | Permalinks | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
There is a bug, when I search something in my WordPress site.
The correct search link should be: http://site.com/search/word
.
When I type something in English, the link is correct: http://site.com/search/word
.
But when I type something in Bulgarian language (Cyrillic), the link is different: http://site.com/?s=абвгд
.
The structure of my WordPress permalinks is: http://site.com/%post_id%
.
Attachments (3)
Change History (6)
#1
@
9 years ago
- Keywords reporter-feedback added
Hey there, is this still happening using the latest version of WordPress (4.4)?
I thought there was some reason for such a behaviour, but I'm not able to reproduce this on a local install at the moment and can't find any source.
#2
@
7 years ago
@kazumy is the problem that the search results are different between "/search/проба" and "/?s=проба" or is the problem that you expected the permalink to be "/search/проба" instead of "/?s= проба" when you use the search widget in the sidebar to search for text?
I tested just now and when I use the search widget in the sidebar on a site running WordPress 4.8, the format of the URL is always "/?s= проба" regardless of whether I search for an English word or a word in Cyrillic.
It's highly possibly I am not testing exactly the same thing as you though. Can you tell me if your steps are different or if I am missing a setting change or sample content I should add in order for the test to be valid?
My testing steps:
- Go to WP Admin > Settings > Permalink.
- Set "Custom Structure" to "/%post_id%" and click "Save Changes."
- Add the search widget to the sidebar if it's not already there.
- Publish a post containing Cyrillic words in it, i.e. "проба".
- Search for "проба" by entering it into the search widget in the sidebar.
- Check the format of the URL whether it is "/search/проба" or "/?s=проба".
Results: when using the search widget in the sidebar, a search for an English word such as "poetry" or a Cyrillic word such as "проба" both result in a URL format of "/?s=проба".
More testing steps:
- Publish a post containing Cyrillic words in it, i.e. "проба".
- Go to example.com/search/проба
- Go to example.com/?s=проба
- Check to see if the search results are the same.
Results: a search with URL format "/search/проба" and URL format "/?s=проба" return the same search results.
Tested with a site running WordPress 4.8 and default plugins (Akismet, Hello Dolly) hosted at Bluehost (PHP 5.4.24).
#3
@
4 years ago
Hello there @designsimply @swissspidy and @kazumy
I am a WordPress.com Happiness Engineer, and I encountered a related issue in WordPress 5.4.x (I believe we're running 5.4.2 at the moment). I just reported the issue in #46059 before I saw that this issue is more relevant.
In this case, the user reported a different set of results using ?s=кофе
and ?s=Кофе
where the initial capitalization of the search terms, кофе
and Кофе
produced different numbers of search results.
Our reference for this is 3118235-zen
Permalinks settings