+ 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.
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)
For Salesforce1 PageReference will not work.See the workaround on the article.