my page url works, when I type in a slug, whith my focus keyword (using yoast) it changes it aotumatically when I click out of it to some code (%d7%a7%d7%99%d7%93%d7%95%d7%9d-%d7%9e%d7%a0%d7%a6%d7%97)

I've searched a lot for a saloution for it and I've found that I need to change my site permalink settings, and I did and it didn't work...

anyone knows how to fix it?


This is because you're using characters that aren't valid in URLs:


URLs only allow a limited subset of ASCII characters

In order for these characters to work in a URL, they have to be encoded. For example if I visit example.com/foo bar/ the space isn't valid in URLs, so it gets turned into example.com/foo%20bar/, where %20 is a space character URL encoded.

However, because your slug contains UTF-8 multibyte characters, each of those characters is turned into 2 encoded entities, making it even longer.

So ק becomes %d7%a7, and so on. They are equivalent. Browsers might process these and display the original character in the address bar, but it isn't possible to have ק directly displayed in a URL at the protocol level.

Similar restrictions happen with domains, requiring a different form of encoding.

So How Do I Get Rid Of This?

You don't. It's just how URLs work. Even if you get your hyperlinks to have the characters you want, browsers will translate them back into the entity encoded values.

Some browsers may even see these, and decode them when showing them to the user, but this is purely for the users benefit, the URL hasn't actually changed.

So, I tested it:

enter image description here

In firefox, I published the post and visited it on the frontend, Firefox went to the URL that was encoded:


But if I look in the address bar, it shows the decoded version:

enter image description here

And if I try to copy paste the URL, I get the encoded version, you'll notice that Firfox shows the correct slug in the status bar, but the markup shows the encoded version:

enter image description here

You can see that they are 2 different ways of representing the same thing

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.