function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kannapapikannapapi 

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!
NagendraNagendra (Salesforce Developers) 
Hi Kannapapi,

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. 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