talisraeli / yeda

תבנית אתר בה ניתן ליצור מאגרי ידע בנושאים שונים בקלות ובלי הרבה ידע מוקדם.
https://yeda.talisrae.li/
MIT License
4 stars 1 forks source link

Term Metadata (title, description) isn't shown on SEO #11

Open talisraeli opened 1 year ago

talisraeli commented 1 year ago

When sending a term page across social media, SEO isn't recognized in the embed message.

For example, the link for the sample page: https://happy-field-0f5282803.3.azurestaticapps.net/מושג-לדוגמה It recognize it as if it was the home page.

image

I think the problem is the encoding of the URI. I think that the browser reads the term name as %D7%9E%D7%95%D7%A9%D7%92-%D7%9C%D7%93%D7%95%D7%92%D7%9E%D7%94 and not מושג-לדוגמה. That's why it thinks the term name is called %D7%9E%D7%95%D7%A9%D7%92-%D7%9C%D7%93%D7%95%D7%92%D7%9E%D7%94.

The solution I recommend is to enforce decoding of the URI to get the real term name.