4

I have created a custom community with and used custom vf pages. Here when i trying enter wrong URL its redirecting me to OOTB page with message "URL no longer exist" but i want it to be shown on custom vf page.

portal landing page - https://testsandbox-test.cs62.force.com/agent/home URL entered to generate error - https://testsandbox-test.cs62.force.com/agent/home2

Please help me to resolve the mentioned use case.

Thanks,

Dildar Hussain

4

3 Answers 3

4

I got the reason why my custom error page was not loading, along with assigning custom VF pages under site error page we also need to enable a setting under community preferences.

Thanks all for your comments and suggestions.

1
  • Glad you figured out.
    – Lance Shi
    Nov 29, 2016 at 4:47
1

In your site settings, there is a section called Error pages. You can click Page Assignment button and reassign your own custom VF page there. As shown in the below screenshot:

enter image description here

2
  • Thanks Lance, i tried it and set a common error page for all error condition but still it is redirecting me to OOTB page. Nov 28, 2016 at 7:21
  • updated question Nov 28, 2016 at 7:22
0
  1. Go to Setup > Sites > Open your site by clicking the name of your community > Go to Error Pages section > Click Page Assignment button and assign you VF Error page.
  2. Go to All Sites > Workspace next to your community name > Administration > Preferences > Select Use custom Visualforce error pages, then click Save

Done.

You should be able to see your custom VF error page in your community.

More details you can find here: https://salesforceprofs.com/custom-community-error-page/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .