Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
MayurSatav
MayurSatavAccepted solution
New Participant
Apr 27, 2022 4:08 AM UTC

Hi @dvaraka ,

 

What is the exact issue? Do you want to add an extension to your injected URL ? or URL itself is not getting injected? Could you please give us more clarity on this? and please share your sling model also.

 

One more thing why you are passing ${textmodel.customtextarea} in href? it should be ${textmodel.link}.

 

Thanks

3 replies

VeenaVikraman
New Participant
Apr 27, 2022 6:52 AM UTC

@dvaraka As @mayursatav mentioned , you are actually printing the wrong property in the link. Instead of ${textmodel.custometextarea} you should use the property name you have given to the link field . 

Translate
MayurSatav
MayurSatavAccepted solution
New Participant
Apr 27, 2022 4:08 AM UTC

Hi @dvaraka ,

 

What is the exact issue? Do you want to add an extension to your injected URL ? or URL itself is not getting injected? Could you please give us more clarity on this? and please share your sling model also.

 

One more thing why you are passing ${textmodel.customtextarea} in href? it should be ${textmodel.link}.

 

Thanks

Translate
Ravi_Pampana
New Participant
Apr 26, 2022 8:01 PM UTC

Hi,

 

Use @2941342='html'  or uri for anchor tags

 

Adds the html extension to a path.

<a href="${item.path @ extension = 'html'}">${item.name}</a>

 

For more information about context attributes, you can refer below link

https://experienceleague.adobe.com/docs/experience-manager-htl/using/htl/expression-language.html?lang=en

 

Translate