ExamGecko
Question list
Search
Search

Related questions











Question 32 - AD0-E134 discussion

Report
Export

The following anchor tag is not resolving:

<a href="item.path" >{item.name}</a>

Upon further inspection the developer notices that the link has no .html appended to the end of the URL

What could be a potential fix for the issue?

A)

B)

C)

D)

A.
Option A
Answers
A.
Option A
B.
Option B
Answers
B.
Option B
C.
Option C
Answers
C.
Option C
D.
Option D
Answers
D.
Option D
Suggested answer: B

Explanation:

Option B is a potential fix for the issue. Option B uses the data-sly-attribute block statement to add the href attribute to the anchor tag. The data-sly-attribute statement uses an expression to append ".html" to the item.path value. This way, the link will have the correct extension and will resolve to the corresponding page. Reference: https://experienceleague.adobe.com/docs/experiencemanager- htl/using-htl/htl-block-statements.html?lang=en#data-sly-attribute

asked 02/10/2024
Joseph Varghese
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first