You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try accessing given category (localhost:3000/čačak)
=======
Why bug happens:
When you update category with url key, it's value is saved to url_rewrite and when middleware try finding url rewrite it compare it against request.originalUrl.
Problem is that before making request, url is encoded since only ASCII characters are valid URL characters, so čačak becomes %C4%8Da%C4%8Dak%0A before sent to the server.
Once received by server, we try finding url_rewrite rule (which in database is written as čačak and since čačak !== %C4%8Da%C4%8Dak%0A, rule is not found and 404 is returned.
To resolve this, before comparing to the record in database, url should be decoded from ASCII to UTF-8.
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
url key = čačak
localhost:3000/čačak
)=======
Why bug happens:
When you update category with url key, it's value is saved to
url_rewrite
and when middleware try finding url rewrite it compare it againstrequest.originalUrl
.Problem is that before making request, url is encoded since only ASCII characters are valid URL characters, so
čačak
becomes%C4%8Da%C4%8Dak%0A
before sent to the server.Once received by server, we try finding
url_rewrite
rule (which in database is written asčačak
and sincečačak !== %C4%8Da%C4%8Dak%0A
, rule is not found and 404 is returned.To resolve this, before comparing to the record in database, url should be decoded from ASCII to UTF-8.
The text was updated successfully, but these errors were encountered: