+ Start a Discussion
Karna_ShivaKarna_Shiva 

How to get Salesforce1 app URL into Apex class?

How to get Salesforce1 app URL into Apex class?
i want to redirect to different pages based URL

if user login from salesforce1 app the i want to redirect to page1
if user login from desktop version  the i want to redirect to page2

How this is possible?
ShashankShashank (Salesforce Developers) 
Please see if this helps: http://salesforce.stackexchange.com/questions/33514/detect-if-visualforce-page-is-in-salesforce1