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
Amit  TrivediAmit Trivedi 

PageReference not working in mobile browser

Hello All,

I have created custom UI for sendding email which is mobile compatible I have used bootstrap to make vf page responsive, It is working fine for desktop browser but in mobile browser one functionality is not working i.e redirect to detail page, I have used PageReference for it.


 PageReference pg = new PageReference('/'+account.id);        
 return pg.setRedirect(true);


Do PageReference do not support in mobile browser ? or am I missing somewhere ? Please help.

Thanks in advance.
ProlayProlay
Please check this article https://help.salesforce.com/apex/HTViewSolution?urlname=Salesforce1-Visualforce-Navigation-Methods-and-Page-Reference-Support&language=en_US (https://help.salesforce.com/apex/HTViewSolution?urlname=Salesforce1-Visualforce-Navigation-Methods-and-Page-Reference-Support&language=en_US)
ProlayProlay
For Salesforce1 PageReference will not work.See the workaround on the article.