How can I add a link to the sidebar component that opens a VF page in a new page? I have created a custom page component and a custom link like apex/myPageName but it does not work.
Attribution to: Dedo
Possible Suggestion/Solution #1
Specify your full URL (eg https://na1.salesforce.com/apex/pagename) for the link.
It's nice to put that prefix in a custom setting so it'll work in sandboxes, after a move, etc.
And as always, verify permissions on the page.
Attribution to: Shane McLaughlin
Possible Suggestion/Solution #2
When creating your Link you can pick the Visualforce page source like so...
Then assign the Link to a component...
And finally to the layout...
My page shows in the sidebar like so and popups up in a new window...
Like so...
My page source is this, note I've removed the sidebar and header...
<apex:page sidebar="false" showHeader="false" >
<!-- Begin Default Content REMOVE THIS -->
<h1>Congratulations</h1>
This is your new Page shown via the Sidebar
<!-- End Default Content REMOVE THIS -->
</apex:page>
Attribution to: Andrew Fawcett
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/5052