Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favicon and siteName not rendering in the title on Tutor #667

Closed
Danyal-Faheem opened this issue Feb 22, 2024 · 0 comments · Fixed by #668
Closed

Favicon and siteName not rendering in the title on Tutor #667

Danyal-Faheem opened this issue Feb 22, 2024 · 0 comments · Fixed by #668

Comments

@Danyal-Faheem
Copy link
Contributor

Danyal-Faheem commented Feb 22, 2024

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:

<title>Discussions | <%= process.env.SITE_NAME %></title>

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:

import './assets/favicon.ico';

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

  1. Install any version of tutor
  2. Create a superuser using the command: tutor local do createuser --staff --superuser yourusername user@email.com
  3. Sign in to tutor with the created user
  4. Import the demo course using the command: tutor local do importdemocourse
  5. Visit the discussions page for the demo course at this url
  6. The favicon and the sitename will not render.

Or you can just visit the sandbox environment, which is running Tutor version 17.0.0. You can visit it at this link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant