[Bug] Space Characters in Search Queries Lead to Internal Server Errors #6

Closed
opened 2024-08-18 00:32:36 +00:00 by Binzy_Boi · 1 comment

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

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
Author

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.

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.
kumi closed this issue 2024-08-18 05:12:40 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PrivateCoffee/wikimore#6
No description provided.