Relevant path configured in Hansel:
start
-add link Home
-switch on url argument 1
--node
--switch on node type
---post
---add link Blog
---goto archive-year

archive-year
-add link [node:created:year] (Note: year is a custom format which outputs just the year)
-goto end

end
-add link to node
-leave

When attempting to view a node in this trail, I get an infinite loop:
15. token_replace()
16. token_generate()
17. module_invoke_all()
18. call_user_func_array()
19. hansel_tokens()
20. hansel_get_breadcrumbs()
21. hansel_replace_tokens()
[repeat]

Additional note: This does not occur in 7.x-1.3

CommentFileSizeAuthor
#2 hansel-recursion.patch4.98 KBimpleri

Comments

impleri’s picture

Title: Infinite loop caused by Date » Infinite loop with date

Yikes. Forgot to modify title before submitting. Date module does not affect the loop.

impleri’s picture

Status: Active » Needs review
StatusFileSize
new4.98 KB

Issue is because hansel_tokens() calls hansel_get_breadcrumbs() on hansel.module, line 805 in 7.x-1.x-dev (as of this post date). The attached patch is one way of fixing the issue, though I wouldn't doubt there's a better way to do so.