I am learning lightning components. I am wanting to know how to do a hyperlink you can click that takes the user to the recordId of the item clicked.
So for example I have a users card graphic with their information. One of these is their name, which is a hyperlink. You click it and it takes you to the recordId.
The custom object I am using for these users is called Guest__c
So the link in lightning for my Guest__c record looks like this
lightning/r/Guest__c/a030X00001MHkwiQAD/view
Lightning Component snippet:
<div style="background-color:WhiteSmoke;">
<div class="card-content" style="padding:5px;font-size:.7em;">{!v.item.title}
This above shows the item. {!v.item.title} is the name.