Hi Keith,
On Wed Dec 04 10:19:41 2013, keith@beyondthevolga.com wrote:
Show quoted text> Hello
>
> I am using Dancer::Plugin::SiteMap 0.11 with Dancer::Plugin::Ajax under
> perl 5.14.2 on Debian 7.1 and am finding that any routes where I have both
> a sub for Ajax and get causes duplicate entries in the generated site map.
> For now I have changed the module to dedupe the output but I would prefer a
> more permanent solution. Let me know if you want more information.
Thanks for the bug report. Obviously the behaviour you've reported is undesirable. To that end, I've looked into adding some code to de-dupe the site map entries.
However, I've not used the Ajax module with Dancer myself, so to ensure that my fix corrects your issue (without breaking the site map module :) ) I'd like to test it.
Could you supply me a sample app with the ajax and get subs in the way you're using them so I can see exactly what you're doing and ensure there's no hidden voodoo within Dancer that is affecting
the route list code.
I'll attempt to test it in the mean time, but your help on this would
be greatly appreciated.
As soon as I can verify that the issue is resolved and everything is working as expected, I'll push a new version to CPAN.
Cheers,
JamesR