Footer logo points to localhost (but header logo uses the correct domain)

Hi,

I’m trying to configure Juniper’s footer logo. It appears as a broken link even though the header logo works correctly.

Inspecting the HTML code I can see that the header logo is using the correct domain https://mydomain/static/images/logo.b6c374d66d57.png but the footer logo is wrongly pointing to localhost. https://localhost/static/images/logo.b6c374d66d57.png (and thus, the error)

How can I change the domain of that footer logo?

After double checking the lms.env.json file I can see that LMS_BASE is pointing to my domain.
I also ran this command:

paver update_assets lms --settings=production

and restarted the server

sudo /edx/bin/supervisorctl restart edxapp_worker: lms cms

to no avail. Any help will be much appreciated.

Hi @Juanan,

Could you say which version of the platform you are using?

Since Juniper, the .json config files are not longer used. Instead, it is using the /edx/etc/lms.yml and /edx/etc/studio.yml files.

If you are using juniper that could be the problem, on the other hand here is the place where it is calculated the source of the footer logo: https://github.com/edx/edx-platform/blob/b13f207e1f5ec313998d08a106d7c0d2d4eee6c6/lms/djangoapps/branding/api.py#L445

You should check your configs related to the Django staticfiles_storage

1 Like

Thanks for the heads up. Yes, I was using Juniper and indeed, I was changing the wrong file.

Hello,

I am facing the exact same issue. After a fresh installation of Koa the footer URL to logo has localhost instead of the domain of LMS.

I tried to run this command:

paver update_assets lms --settings=production

but it didn’t help.

Thank you in advance for your help.

Hello @zanstro and welcome to the community,

Set the value of SITE_NAME in /edx/etc/lms.yml file, restart the LMS service and you will be able to see the logo in the footer.

1 Like

Hello @jramnai,

that was the problem, I have left it as localhost. Thank you so much for the solution!

1 Like