Quick question : how can i get the "normal" base url from a community context ?

More details

It tryed to find an existing solution but keywords are returning everything but what i am looking for :)

Here is my problem: We are using pictures for external usage (email templates generated with visual force page). To display it in an external context, we are using this url


In VF page i am using


Where {!baseURL} = URL.getSalesforceBaseUrl().toExternalForm()

And {!loggedinUserImg} is a Document record id found with the current user name.

It was working fine with our "normal user", we just need to register a document with picture, external usage == true and some mapping system (we use user name as the name of the document).

But now we included a bunch of community users and it doesn't work anymore. The reason is {!baseURL} returning the custom community url that can be attached (i guess) to the servlet/servlet.ImageServer ... thing

Is there a solution to this problem ? Accessing "normal" base url or another solution allowing us to access our documents/pictures ?


You must log in to answer this question.

Browse other questions tagged .