-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decode permalinks with URL encoding #13551
Decode permalinks with URL encoding #13551
Conversation
I think @earnjam or @jorgefilipecosta should be the best suited to help to validate the changes proposed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Naerriel,
Thank you for this improvement.
I noticed there is another place we need to fix. If we go to title the permalink editor appears above it. If we press edit we see the field with the encoded representation. Probably we should add another decodeURIComponent call.
Hi @jorgefilipecosta If I'm correct, I could just decode it in reducer to action |
…fix/permalinks-with-rtl-codes
Hey @earnjam, |
Sorry for the delay @Naerriel. Just did some testing and this PR looks good to me! |
* Decode URL encoding slug in sidebar permalink * Decode URL encoding slug in sidebar permalink pt.2. * Decode URL encoding slug in sidebar permalink pt.3. * Decode URL encoding slug in sidebar permalink pt.4.
* Decode URL encoding slug in sidebar permalink * Decode URL encoding slug in sidebar permalink pt.2. * Decode URL encoding slug in sidebar permalink pt.3. * Decode URL encoding slug in sidebar permalink pt.4.
there's another issue when you switching wordpress to arabic language : and this is how must be : https://www.byarabic.com/مقالة-الموقع/ |
@rachidev84 Can you please create a new issue so that this is properly tracked, since this pull request is already merged and will not likely receive much future attention from collaborators? |
Description
Fixes #13229.
Currently slug for the permalink is encoded and that PR simply decodes it.
How has this been tested?
Ran
npm run test
and looked on the permalinks that were previously encoded and saw that they were decoded.Screenshots
Types of changes
Bug fix.
Checklist:
Questions:
I've had doubts where in the code this decoding should be done and I've chose the view, as it probably isn't needed elsewhere. Please let me know, what you think.