Resources > Troubleshooting Tips > Troubleshooting: SFM Designer > Custom Action to open a VF Page Displays URL No Longer Exists
Custom Action to open a VF Page Displays URL No Longer Exists
An SFM Custom Action has a redirection to a custom Visualforce (VF) page outside the managed package. On launching the custom action, the "URL No Longer Exists" error is displayed.
Resolution: The issue is caused due to redirection to a custom Visualforce (VF) page outside the managed package. As a result, the namespace of the managed package is the parent instead of the org namespace, and the redirection is pointed to a non-existing URL.
Changes were made to the ServiceMax package to adhere to the Salesforce security requirement. ServiceMax package had a token passed when trying to open VF pages to avoid CSRF (Cross-Site Request Forgery ). This change would require customers to include "c__" before the custom VF page name when configuring custom actions. The "c__" prefix informs SFDC that the VF page name that follows belongs to the default namespace (custom VF page).
If the "c__" prefix is not specified, the default behavior would be to append the namespace of the managed package from which the VF page is invoked. Any ServiceMax VF page configured in the Custom Action can follow the format "/apex/SMAXVFPageName" or "/apex/SVMXC__SMAXVFPageName".
* 
It is recommended that the administrators pay attention to other custom actions where custom VF Pages are launched and update them to include "c__". Ensure the same convention is followed when creating new User-Defined Custom Actions.
You can use the following query to list all Custom Actions of type URL that use non-ServiceMax VF Pages:
SELECT Id,SVMXC__Name__c, SVMXC__Source_Object_Name__c,SVMXC__IsStandard__c,SVMXC__Custom_Action_Type__c,
SVMXC__Target_URL__c FROM SVMXC__ServiceMax_Processes__c WHERE RecordType.Name = 'SF Action' AND
SVMXC__Target_URL__c LIKE '/apex/%' AND (NOT SVMXC__Target_URL__c LIKE '/apex/SVMXC__%') AND
SVMXC__IsStandard__c = false
Was this helpful?