Closed Danyal-Faheem closed 6 months ago
Issue
When we use this MFE on Tutor, I haven't had the opportunity to test it on devstack, the favicon and siteName in the title do not render. Similarly, the title is not translated into the current language, it always shows in English as is defined in the index.html file: https://github.com/openedx/frontend-app-discussions/blob/ac17fd72943972590b3126b004c51c4bae8480f2/public/index.html#L4
index.html
Possible Reason
This is likely due to this MFE trying to access the favicon directly in the assets folder as it is being done here: https://github.com/openedx/frontend-app-discussions/blob/ac17fd72943972590b3126b004c51c4bae8480f2/src/index.jsx#L17
In the other MFEs, they use the react-helmet package to override the head tag, similar to how it is being done in the profile MFE here.
react-helmet
How to reproduce
tutor local do createuser --staff --superuser yourusername user@email.com
tutor local do importdemocourse
Or you can just visit the sandbox environment, which is running Tutor version 17.0.0. You can visit it at this link
Issue
When we use this MFE on Tutor, I haven't had the opportunity to test it on devstack, the favicon and siteName in the title do not render. Similarly, the title is not translated into the current language, it always shows in English as is defined in the
index.html
file: https://github.com/openedx/frontend-app-discussions/blob/ac17fd72943972590b3126b004c51c4bae8480f2/public/index.html#L4Possible Reason
This is likely due to this MFE trying to access the favicon directly in the assets folder as it is being done here: https://github.com/openedx/frontend-app-discussions/blob/ac17fd72943972590b3126b004c51c4bae8480f2/src/index.jsx#L17
In the other MFEs, they use the
react-helmet
package to override the head tag, similar to how it is being done in the profile MFE here.How to reproduce
tutor local do createuser --staff --superuser yourusername user@email.com
tutor local do importdemocourse
Or you can just visit the sandbox environment, which is running Tutor version 17.0.0. You can visit it at this link