function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
prazonprazon 

Accessing external URL from a visualforce page

Hi I have following piece of code , where I am trying to link an external URL from the visualforce page but here it is always adding the sfdc server instance in front of the url so the url is not opening at all. Please tell me how to avoid the server url in front: https://<server_name>.cs4.visual.force.com/apex/http//www.google.co.uk

<apex:pageBlockSection columns="1">
                    <!--<apex:commandLink action="{!websiteLink}" value="{!Contract.Partner_Website__c}" id="theCommandLink" target="_blank"/>-->
                    <apex:outputLink value="http//www.google.co.uk" target="_blank">{!Contract.Partner_Website__c}</apex:outputLink>
                    <apex:inputField value="{!Contract.Description}" style="height:150px;width:100%"/>
                    <apex:inputField value="{!Contract.Komentar_fuer_Freigabe__c}" style="height:110px;width:100%"/>
                </apex:pageBlockSection>      

 

 

 

 

 

donkotterjrdonkotterjr

Hey, 

It looks like you just forgot the colon.  

value="http//www.google.co.uk"

should be:

value="http://www.google.co.uk"