+ Start a Discussion

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>' );
            return null;