i had reported a link-rendering bug when groups were being collapsed (Links to nodes in collapsed groups rendering improperly). testing with the new 1.7.21 version it seems there are still problems - this time occurring when a group is expanded. the stack of links should be connected to the Router (8) group at the top.
i’m discovering more problems - not even with group templates but node templates too. in my cloud node template i am specifying fromSpot as go.Spot.RightSide yet when opening groups the link position changes to bizarre places on the node. this is with link fromSpot and toSpot explicitly defined to leftSide and rightSide as well.
If you temporarily replace all uses of LayeredDigraphLayout with another layout, such as TreeLayout, do you still have these problems? Of course nodes won’t be where you expect them to be positioned, but otherwise I’m hoping that it’s a problem with LayeredDigraphLayout and not with link routing.
Use something like $(go.TreeLayout, { isRouting: false }). Or maybe just try setting Layout.isRouting to false on your LayeredDigraphLayout.
Could you try the beta library that is at GoJS - Build Interactive Diagrams for the Web ? One way of doing so is to load the library from https://gojs.net/beta/release/go-debug.js. Thanks.