You need to sign in to do that
Don't have an account?
Rajkumar Venkat
How to disable the Customer community standard page layout view for Custom branded Community Portal
Limitation:
Recently I came across the issue where customer community does not have option to disable the standard page layout view for community users.
Scenerio:
Like https://xy.force.com/portal/pagename?Id=18digitid - this will be correct url for customer community users.
Someone changing the url to valid salesforce url
https://xy.force.com/portal/18digitid - this is going to standard customer community layout which has all the standard settings.
Issue:
Some customer does not want to allow the community users to view standard page layout. As said there are no standard options to disable the page layout for community users.
Recently I came across the issue where customer community does not have option to disable the standard page layout view for community users.
Scenerio:
Like https://xy.force.com/portal/pagename?Id=18digitid - this will be correct url for customer community users.
Someone changing the url to valid salesforce url
https://xy.force.com/portal/18digitid - this is going to standard customer community layout which has all the standard settings.
Issue:
Some customer does not want to allow the community users to view standard page layout. As said there are no standard options to disable the page layout for community users.
The following is easiest option to avoid these issue.
Step 1: Create the html page as below and upload into document which should be available for the community.
<html>
<head>
</head>
<script>
window.onload = top.location.href = 'ErrorPage'; (Your custom error page or custom landing page)
</script>
<body>
</body>
</html>
Step 2: Add this document in the Community Custom Header (Via community management screen)
This will allows to redirect the user when they manipulating the URL which is valid salesforce URL.
All Answers
The following is easiest option to avoid these issue.
Step 1: Create the html page as below and upload into document which should be available for the community.
<html>
<head>
</head>
<script>
window.onload = top.location.href = 'ErrorPage'; (Your custom error page or custom landing page)
</script>
<body>
</body>
</html>
Step 2: Add this document in the Community Custom Header (Via community management screen)
This will allows to redirect the user when they manipulating the URL which is valid salesforce URL.
<allowStandardPortalPages>false</allowStandardPortalPages>