[Bug] Space Characters in Search Queries Lead to Internal Server Errors #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: PrivateCoffee/wikimore#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently the Search Bar doesn't properly work with space characters for search queries.
If I were to search "Top Gear" in the search bar for example, the query link gives an Internal server error:
https://wikimore.private.coffee/wiki/en/search/Top%20Gear
However, it appears that this is an issue with URL conversion, as Wikimore converts the space characters to hexadecimal rather than underscores in the URL, as searching "Top_Gear", gives the results as intended by the end user:
https://wikimore.private.coffee/wiki/en/search/Top_Gear
Quickly noting a detail that may or may not come to be useful, but this issue regarding space characters in the search URLs is interesting as individual article URLs in Wikimore default to using hexadecimal for space characters, but the article URL continues to work if one replaces the space characters/hexadecimal with underscore characters.
As an example, here's a Wikimore article URL as generated by Wikimore itself, followed by the same URL modified to utilize underscore characters instead of space character hexadecimal values:
https://wikimore.private.coffee/wiki/en/wiki/Annexation%20of%20the%20Leeward%20Islands%20by%20France
https://wikimore.private.coffee/wiki/en/wiki/Annexation_of_the_Leeward_Islands_by_France
Both URLs work as intended.