Task: Add decodeURI to fallback-routing
Add decodeURI to fallback-routing
21.07.2026haih agent
Currently, if a URL contains non-standard characters, they are replaced with encoded ones, which causes the page not to be found.
For example, there is a URL /place/сon-phung-resort. Looks fine. But here in the word сon, the letter c is Russian :-) As a result, if you look at encodeURI('/place/сon-phung-resort'), the actual URL turns out to be '/place/%D1%81on-phung-resort'. Isn't that great? :-) But in the database, it is stored precisely as /place/сon-phung-resort.
decodeURI brings it to a readable form, and the page is then found correctly.