[BUG] URL encoded links yield error when open them from the page #179
Labels
bug-type: parser
This bug is related to the parser (for example, incorrect lists or missing elements in the article)
state: approved
This issue or pull request was approved and can be worked on
type: bug
This fixes a bug. Increment the minor version
General Information
Version: 0.7.0
Installation Method: cargo
Operating System: any
Backend (If changed during install): default
Describe the bug
URLs made of ASCII characters and for languages, that lies outside of the ASCII range (like Cyrilic languges, Japaneese or Chineese, Arabic etc) UTF text encoded as escape codes. For some reason this kindof links fails to concatenate with the main url and yield error about empty title of the page. Also when redirect message pop-up appears it displays URL encoded mess like (%D0%A0%D0%B0%D1%81%D1%82%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D0%B5_%D0%BC%D0%BE%D0%BB%D0%BE%D0%BA%D0%BE).
We can decode it and display readable text to the user.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Page should be opened like if we searched.
Search results doesn't share faulty behaviour when searching and opening non-ascii links.
Additional context
Log : wiki-tui.log
Checklist
CONTRIBUTING.md
The text was updated successfully, but these errors were encountered: