I have noticed that the logo I have placed in my login page template for Customer Portal does not load unless the user is already logged into Salesforce, which defeats the purpose of it as customers will not have access to this.

The logo itself is actually a static resource but has been set to public in the share settings.

Could anyone shed some light on this behavior and how I could fix it? Possibly without hosting the image outside Salesforce.

1 Answer 1


Static resources are only accessible once a user has been authenticated. But you can setup your logo as a document that can be marked as an "Externally Available Image".

The URL to access that logo is then:


See How do I reference a public image stored in salesforce.com in my HTML? for the details.

For a Site you would replace {SALESFORCE-INSTANCE}.salesforce.com with the Site default web address e.g. mydomain.secure.force.com/mysite.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .