Question
If I'm on a managed package page, how can I link to a visualforce page in the default namespace without hardcoding the instance?
Background
I'm building a skuid page that has a custom action that sends users to a visualforce page. If I specify the relative URL for the visualforce page, e.g. /apex/MyPage
, the redirect stays in the skuid namespace, i.e. https://skuid.<pod>.visual.force.com/apex/MyPage
, which gives a URL not found error.
I'm able to get things working if I specify the absolute url, i.e. https://<pod>.salesforce.com/apex/MyPage
, but I'm hoping to avoid hardcoding the absolute URL.
I've searched through all the Skuidify manuals and haven't been able to find any solutions there. Hoping the community has some tips here.
/apex/c__MyPage
will always load the VF Page calledMyPage
within the local namespace, and/apex/ns__MyPage
will always take you to a page called MyPage within thens
namespace.