quran / quran.com-frontend-v2

https://previous.quran.com
GNU General Public License v3.0
456 stars 199 forks source link

Arabic font always changing back to default when refreshing page #468

Open turbofan20 opened 3 years ago

turbofan20 commented 3 years ago

Assalamualaikum. Whenever I change the Arabic font to another font eg. IndoPak, and then I go to another surah, or refresh the page, the font always changes back to King Fahd Quran Complex v1 no matter what. I have tried different browsers and even devices, and I still have the same issue. Is anyone else having the same problem?

Yuniac commented 3 years ago

Assalamualaikum

I just tested on Firefox, I tried few times and I couldn't replicate the issue the font stayed the same font I chose (I tested with IndoPak font).

One thing you can do is clear the cache and refresh the page. (on Firefox, you can press ctrl + shift + R to hard reload, erasing the cache and requesting a totally new version of the page. not sure about other browsers but they all have some way of doing it)

turbofan20 commented 3 years ago

WaAlaikum as salam, @Yuniac. I tried your suggestion but the problem still persists. I have tried disabling my firewall and adblocker but those don't work either....

Maybe it could be a cookie issue, however only 3 cookies are stored on the website and making sure that they don't change (via extension) doesn't work as well. I am not sure why I am experiencing this problem.

https://user-images.githubusercontent.com/55412194/128608194-4c36a07d-c928-48a0-a003-a4d876486860.mp4

benomaire commented 3 years ago

interesting... i can reproduce:

  1. go to quran.com
  2. Choose Surah Al-Fatihah
  3. Choose Indopak
  4. Choose Surah Al-Baqarah --> the font is not indopak anymore
  5. now try to switch to indopak again, you find it chosen!
turbofan20 commented 3 years ago

interesting... i can reproduce:

  1. go to quran.com
  2. Choose Surah Al-Fatihah
  3. Choose Indopak
  4. Choose Surah Al-Baqarah --> the font is not indopak anymore
  5. now try to switch to indopak again, you find it chosen!

This is exactly my problem. However, I have sort of solved my issue temporarily until the developers can fix it.

What I did was download Redirector https://chrome.google.com/webstore/detail/redirector/ocgpenflpmgnfapjedencafcfakcekcd and then I created a macro which adds the following string of text: ?reading=false&translations=20%2C203&start=&font=indopak to the end of any url that begins with quran.com . So it turns quran.com/*surah number*/ into quran.com/*surah number*/?reading=false&translations=20%2C203&start=&font=indopak, which turns the font into indopak and adds sahih intl and Dr Muhsin Khan translation, which otherwise wouldn't be possible without the extension.

The link to the macro: https://mega.nz/file/ORoggQRL#E-ogumLHO0BSq-OFrP6jwbwht_ecw0kTRafDG3d2T8U

JazakAllah khair to anyone that helped

FahadBSyed commented 3 years ago

I can confirm I have the same issue using Chrome both on desktop and on mobile.

naeemz commented 3 years ago

FIXED in coming version. For now use the following: https://next.quran.com/

FahadBSyed commented 3 years ago

Jazakallahu khair

On Mon, Nov 8, 2021, 8:17 AM Naeem @.***> wrote:

FIXED in coming version. For now use the following: https://next.quran.com/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quran/quran.com-frontend-v2/issues/468#issuecomment-963141427, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMID7H67F7SX3XYWNHLPLDUK7EYDANCNFSM5BW2QUAA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

themeix commented 2 years ago

Alhamdulillah... Waiting for the new version

FIXED in coming version. For now use the following: https://next.quran.com/