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

Configuration auth_header_logo_url (branding) not working #22370

Closed
penguin86 opened this issue May 27, 2022 · 2 comments
Closed

Configuration auth_header_logo_url (branding) not working #22370

penguin86 opened this issue May 27, 2022 · 2 comments
Labels

Comments

@penguin86
Copy link

penguin86 commented May 27, 2022

Steps to reproduce

To reproduce:

  • install Element 1.10.12 unzipping the archive in /var/www/html (Apache2 webserver)
  • copy config.json.example to config.json
  • create a theme folder and add some SVG images
  • edit the config.json file adding this section:
"branding": {
      "welcome_background_url": "theme/background.svg",
      "auth_header_logo_url": "theme/logo.svg"
   }
  • go to the login page with browser (I'm using Firefox 100)

While the background is shown correctly, the logo isn't replaced (the default Element logo is shown). In the developer tool's network tab there are no failed requests for the logo. The only request for logo.svg is done at /welcome/images/logo.svg.

Maybe useful infos:

  • The https://....../config.json?cachebuster=1653633709541 request returns the correct logo image path.
  • Replacing the relative urls with absolute ones (https://.......logo.svg) in the config doesn't solve the problem
  • The images are available from the web browser at the expected url

PS: Thank you very much for this gorgeous client!!!

Outcome

What did you expect?

The logo on login page to be replaced with the one set in the config file.

What happened instead?

The logo remained the default one.

Operating system

Debian 11

Browser information

Firefox 100

URL for webapp

Element 1.10.12

Application version

Element 1.10.12

Homeserver

synapse (matrix-synapse-py3 1.59.1+bullseye1)

Will you send logs?

No

@t3chguy
Copy link
Member

t3chguy commented May 27, 2022

So the reason for this is that Welcome is an external HTML page (/welcome.html) which is loaded in.

image

You can replace the entire welcome.html with your own choice of page using embedded_pages.welcome_url in config.json

@penguin86
Copy link
Author

Ooooh, I see... Thank you Michael, I didn't expect the welcome page to be enabled by default, altought I must say it was well-documented. Sorry to have bothered you, and thank you a lot for the support!

Just to leave a trace to someone that may need it in the future: if you don't want to implement a custom welcome page but want to continue using the default login page, just add another section in the config file:

    "embedded_pages": {
        "login_for_welcome": true
    }

This disables the default welcome page: this way the defalt login page is shown, with the correct logo.

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

2 participants