I wrote a lightning component that searches(queries) Account and shows results in the form of clickable links:
'a href="{! '#/sObject/' + account.Id + '/view'}"'
(https://i.imgsafe.org/21d7bd409b.png)
These links open a URL inside the Salesforce1 app. When I try to deploy the same approach for Lightning version of S1 instead of opening the links inside S1, it opens them in an external Web browser(Safari).
I tested it on Salesforce Classic and Lightning on Android and Iphone. Android works perfectly and opens the links inside the app in both versions. Iphone works fine on Classic version but opens links externally on Lightning.
I tried to use deep URI links i.e { com.salesforce.salesforce1://entity/view?entityId={!record.id} } didnt work. Including just {salesforce1://entity/view?entityId={!record.id}}.
Also, I tried to use Navigation i.e sforce.one.navigateToSObject (\'' + Account.Id + '\') and put it into but it doesn't navigate to the record as well.
How to make it open links(navigate to a record) internally in Lightning version on IOS?