Reputation: 251
So whenever I post a link from my website to facebook everything captures correctly and adds images correctly. But when I or any other person clicks on it the link URL get encoded so the address bar has weird characters. So if the url is example.com/index.php?page=2;article=123 it reads: example.com/index.php%3Fpage%3D2%3Barticle%3D123
Is there any way to add the url a correct way or even have my site check for those characters and redirect it with the correct characters?
Upvotes: 0
Views: 3620
Reputation: 1020
Those characters are the html url encoding. The two urls are equivalent and should navigate to the same page. Is your issue with the aesthetics of having those characters show up in the address bar?
Upvotes: 2