I have a Lightning Component in my Home page that filter a list of Opportunities.
On the title I have a link to the list on the Opportunity tab that works perfectly.
This is the code.
<a href="/one/one.app?#/sObject/Opportunity/list?filterName=00B28000000zx7MEAQ" target="_blank" class="slds-type-focus">
<span class="slds-section__title">My Policies due to Renewal</span></a>
I tried to create a similar link on the Opportunity Name to open the record detail page with no success.
My code is:
<a href="{!'/one/one.app?#/sObject/'+ opp.Id}" target="_blank">{! opp.Name }</a>
I got the error message
"This page isn't available in Salesforce Lightning Experience or
Salesforce1". The address in the URL is :
/one/one.app?#/sObject/006280000074WXdAAM and it should be :
/one/one.app?#/sObject/006280000074WXdAAM/view?t=1478147610998
How can I get the view part?
Best Answer
Just append
view
text to the end of href of the anchor tag.