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

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,
     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
 and Creating Visualforce Pages That Work in Mobile and Desktop

Please let us know if you are looking for something else.

Best Regards,