From a component included in a vf page, I need to open the record page in the SFDC CRM application ( one.app ).
I tried using force:navigateToSObject but is not working when called from a vf page including a ltng:outApp component, probably because vf page is technically in an iFrame.
It is also not possible to update the hash so when detected it opens the good record page layout ( iFrame prevent top frame url hash update )
Only solution for now is window.top.location.href = '/one/one.app#/sObject/'+sfdcRecordId+'/view' , but :
- it provokes a full refresh of the page ( 5 seconds of snowman )
- I'm pretty sure it won't work with LockerService activated
Would anyone have a magic solution ? ( of SFDC an evol to announce ? :) )