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
BenPBenP 

Link to external site in Exception

I have a force.com site page that references a class that will display an error.  Inside this error I'd like to have a link to an external web page.  The problem is that the site is inserting it's site address before mine.  Instead of www.website.com, I'm getting site.force.com/page/mylink.  Any advice there?

 

if(sg.Is_Portal_User__c == 'True')
         {
                MyException e = new MyException('You have accessed the wrong portal. Click <a href="www.bit.ly/xxxxxx">here</a>' );
            ApexPages.addMessages(e);
            return null;
         }