quran / quran.com-frontend

quran.com frontend
https://quran.com
MIT License
988 stars 360 forks source link

Add dynamic og:image and remove canonical urls #1170

Closed tifa2UP closed 4 years ago

tifa2UP commented 4 years ago

Summary

  1. Removed the canonical url property og:url which made Facebook and other crawlers always fetch the meta tags for https://quran.com instead of the desired path.

  2. Added dynamic open-graph images that fetch image previews based on the content.

Test Plan

@mmahalwy I don't have the API running locally so haven't been able to test the changes. Let's get it up on staging and give it a test before we deploy it to prod.

ahmedre commented 4 years ago

Deployed to: http://staging.quran.com:32795

ahmedre commented 4 years ago

Deployed to: http://staging.quran.com:32796

ahmedre commented 4 years ago

Deployed to: http://staging.quran.com:32797

ahmedre commented 4 years ago

Deployed to: http://staging.quran.com:32798

ahmedre commented 4 years ago

Deployed to: http://staging.quran.com:32799