• Deekshya Mohapatra
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
I have the below line of code in my aura component. I would like to append href to include recordId. I'm currently getting an error message as below. How can I fix this?
"Cannot mix expression and literal string in attribute value, try rewriting like {!'foo' + v.bar}"

Here is the line of code:

 <a href = "https://amgenpatientservices--dev4.lightning.force.com/lightning/r/{!v.recordId}/related/Cases/view">
I have the below aura card component called "Consents". I would like this to be a hyperlink, which loads the Consents page. How can I achieve this?

<lightning:card iconName="standard:work_capacity_usage" title="Consents">