We recently implemented a Partner Portal, but are having trouble embedding links in our templates to VF pages that work for both our internal users and our partner users.
What we are trying to do:
Link to a VF page called “OpportunityTable”
Be able to embed this link in a template that prepends the proper address whether the logged in user is a Partner or Internal user.
Here is what I’ve tried:
ATTEMPT #1
<a href="/apex/c__OpportunityTable">
Which generates the following URL:
<a href="https://buildrealty.force.com/apex/c__OpportunityTable" rel="nofollow" target="_blank" title="Link https//buildrealtyforcecom/apex/c__OpportunityTable">https://buildrealty.force.com/apex/c__OpportunityTable</a>
Results:
Partner User - “Under Construction” message is displayed
Internal User - Works Correctly
ATTEMPT #2
<a href="/partners/apex/c__OpportunityTable">
Which generates the following URL:
<a href="https://buildrealty.force.com/partners/apex/c__OpportunityTable" rel="nofollow" target="_blank" title="Link https//buildrealtyforcecom/partners/apex/c__OpportunityTable">https://buildrealty.force.com/partners/apex/c__OpportunityTable</a>
Results:
Partner User - Works Correctly
Internal User - “URL No Longer Exists” message is displayed