Is there a way to open VF page in lightning experience using URL link?. I know we can use sforce.one.navigateToURL but in our case it would not work because The URL link is outside the salesforce.
Use case
- We are sending an vf page link in the email some thing like
<a href="https://na16.visual.force.com/apex/myTask"> Click Here</a>
. this is working fine with classic but we are facing the issue if user is in lightning experience.
Issue
- If user is in lightning experience then this URL link is not working as expected. It's open the VF page but without one.app container.
I have attached the screen short of both classic and lightning experience output.
If user is in classic then URL Link open below screen
If user is in lightning experience then URL Link open below screen
Expected output in lightning experience
Is there any way to get expected output?
/one/one.app#/alohaRedirect/apex/vfPageName
to our URL and use it to redirect to the required page. We just want to know if this is the ideal solution or there is some other option to this.