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

[v15.2.0-rc] Custom logo and background not getting loaded #18187

Closed
JoJk0 opened this issue Jan 31, 2025 · 6 comments
Closed

[v15.2.0-rc] Custom logo and background not getting loaded #18187

JoJk0 opened this issue Jan 31, 2025 · 6 comments
Labels

Comments

@JoJk0
Copy link

JoJk0 commented Jan 31, 2025

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

15.2.0-rc

Bug summary

No logo and background image displayed after 15.2.0-rc update. Browser is trying to access

/umbraco/management/api/v1/security/back-office/graphics/login-logo and /umbraco/management/api/v1/security/back-office/graphics/login-background which they both return 404 error.

Specifics

Image

Steps to reproduce

  1. Install Umbraco 15.2.0-rc

  2. Set LoginLogoImage and LoginBackgroundImage inside Umbraco.CMS.Content of appsettings.json / appsettings.Development.json

  3. dotnet run and do a basic setup

  4. Observe lack of images

Expected result / actual result

Logo and background images displayed

@JoJk0 JoJk0 added the type/bug label Jan 31, 2025
Copy link

Hi there @JoJk0!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@AndyButland
Copy link
Contributor

This looked to work OK for me, so might be how you have configured the images. The documentation for this feature isn't live yet, but you can find the PR here: umbraco/UmbracoDocs#6808

If I configure the following I see the image show up:

"Umbraco": {
  "CMS": {
    "Content": {
      "BackOfficeLogo": "../media/3pqd4bdm/my-logo.png"
    },

I'll close this, but if you are still having trouble please feel free to re-open.

@asawyermarathon
Copy link
Contributor

asawyermarathon commented Feb 10, 2025

This is still broken for me today, using the latest full release (non-RC) 15.2.0.

"Umbraco": {
"CMS": {
"Content": {
"LoginBackgroundImage": "/dist/img/login/team-13.jpg",
"LoginLogoImage": "/dist/img/login/logo_blue.svg",
"BackOfficeLogo": "/dist/img/login/team-13.jpg",
},

The login page url still references /umbraco/management/api/v1/security/back-office/graphics/login-logo

@AndyButland
Copy link
Contributor

I'll re-open... reading again seems I misinterpreted the raised issue to consider the backoffice logo, but report is about the login screen.

@AndyButland AndyButland reopened this Feb 10, 2025
@iOvergaard
Copy link
Contributor

@asawyermarathon It won't change those calls. Those endpoints will look for the path on disk. You can read more about that here: https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/login#custom-background-image-and-logo

According to that article, the images have to be relative:

The LoginBackgroundImage, LoginLogoImage, and LoginLogoImageAlternative are referenced from the /wwwroot/umbraco/ folder.

That means, for your images, your path should be relative:

"LoginBackgroundImage": "../dist/img/login/team-13.jpg",

@asawyermarathon
Copy link
Contributor

Thanks for that @iOvergaard, I would not have found that by myself. I changed the paths and can confirm that this works and solves my problem. Login image urls must be relative to the site's /umbraco/ folder, absolute urls will not work in 15.2+.

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

No branches or pull requests

4 participants