You need to sign in to do that
Don't have an account?

How to redirect page for Salesforce1 App?
Hi I have a apex:page header like this:
<apex:page standardController="Opportunity" showHeader="true" extensions="SampleOpportunityControllerExt" action="{!if(isSampleRequest,
null,
urlFor($Action.Opportunity.Edit, Opportunity.Id, [retURL="/apex/OpportunityView?id="+Opportunity.Id], true))}" >
When i login through Salesforce1 app redirection not working.
Could anyone help me how to achieve this for both desktop and salesforce1.
Thanks in Advance!
It could have been even better if you have posted the extension controller which might help us in easy troubleshooting.
Anyways assuming the issue as similar to the below thread from stack exchange please find it below.
- http://salesforce.stackexchange.com/questions/75971/how-to-redirect-to-saleforce1-app-detail-page-from-apex-controller
Take a look at Managing Navigation(https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/vf_dev_best_practices_navigation.htm) and Creating Visualforce Pages That Work in Mobile and Desktop
(https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/vf_dev_best_practices_pages_multipurpose.htm).
Please let us know if you are looking for something else.
Best Regards,
Nagendra.P