diff --git a/pkg/app/pagewriter/sign_in_page.go b/pkg/app/pagewriter/sign_in_page.go index bb34bb49..4286c730 100644 --- a/pkg/app/pagewriter/sign_in_page.go +++ b/pkg/app/pagewriter/sign_in_page.go @@ -105,7 +105,7 @@ func loadCustomLogo(logoPath string) (string, error) { return "", nil } - if strings.HasPrefix(logoPath, "https://") { + if strings.HasPrefix(logoPath, "https://") || strings.HasPrefix(logoPath, "http://") { // Return img tag pointing to the URL. return fmt.Sprintf("\"Logo\"", logoPath), nil } diff --git a/pkg/app/pagewriter/sign_in_page_test.go b/pkg/app/pagewriter/sign_in_page_test.go index eb95ded8..a183fb3e 100644 --- a/pkg/app/pagewriter/sign_in_page_test.go +++ b/pkg/app/pagewriter/sign_in_page_test.go @@ -131,6 +131,11 @@ var _ = Describe("SignIn Page", func() { expectedErr: nil, expectedData: "\"Logo\"", }), + Entry("with HTTP URL", loadCustomLogoTableInput{ + logoPath: "http://example.com/logo.png", + expectedErr: nil, + expectedData: "\"Logo\"", + }), Entry("with an svg custom logo", loadCustomLogoTableInput{ logoPath: "customDir/logo.svg", expectedErr: nil,