Velocity snippet template - EditLive

Hi,

I’ve created a snippet template which links to a Velocity page template. When I preview the snippet template in isolation everythig works fine. I.e. switching between context=0 (preview) where I get either the internal RX URL as the href for the link or context=1 (publish) where I get the site root relative path for the href for the item.

This is the binding…

$pagelink
$rx.location.generate($sys.assemblyItem)

Doesn’t get much simpler than that. However when I add this link snippet to EditLive in a page template (which incidentally is a legacy XSL template) and switch between preview and publish contexts I always get the internal RX href / URL ??

Any ideas?

Jason