[ 
https://issues.apache.org/jira/browse/SLING-10113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276645#comment-17276645
 ] 

Paul Bjorkstrand commented on SLING-10113:
------------------------------------------

Does {{targetPagePath}} start with a slash ({{/}})? Per the code [1], the path 
is appended to the current resource, if it does not


[1]: 
https://github.com/apache/sling-org-apache-sling-scripting-sightly/blob/org.apache.sling.scripting.sightly-1.1.2-1.4.0/src/main/java/org/apache/sling/scripting/sightly/impl/engine/extension/ResourceRuntimeExtension.java#L212

> data-sly-resource throwing RecursionTooDeepException
> ----------------------------------------------------
>
>                 Key: SLING-10113
>                 URL: https://issues.apache.org/jira/browse/SLING-10113
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Marvin Flock
>            Priority: Major
>         Attachments: image-2021-02-01-17-40-19-873.png
>
>
> AEM Version 6.5.7
> While using data-sly-resource with a path, I get a RecursionTooDeepException.
>  See -SLING-7685-  for Similarity
> I currently cant make hold of the behavior, using
> _<div data-sly-resource="${targetPagePath}"></div>_
>  will include the current page infinite times (at least it tries) instead of 
> the target page
>  while using something like this:
>  _<sly data-sly-resource="${targetPagePath @ 
> appendPath='jcr:content/anyResource'}"></sly>_
>  will render the curentPage with the RecursionTooDeepException.
> The HTL Engine I am using is of the following version:
>  !image-2021-02-01-17-40-19-873.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to