As I understand it right we are supposed to not use href="/..."
attributes anymore in Lightning and have onclick="{c.navigateToSObject}"
instead.
navigateToSObject: function(cmp, event, helper) {
event.currentTarget.id;
var evt = $A.get("e.force:navigateToSObject");
evt.setParams({
"recordId": recordId,
"slideDevName": "detail"
});
evt.fire();
}
But how do I get Command-Click (on Mac) to work with that?
According to this https://success.salesforce.com/ideaView?id=08730000000CIt7AAG it seems to be possible and is perfectly working for all links generated by the Salesforce UI. Just CMD-click any lookup field on a record page.