Syncthing syncs symlinks as they are, as in, it would not sync the content behind the symlink, just the link itself, which is not obvious to me if that is what you want.
I think the error you are getting is because the symlink leaves the root of the syncthing folder, which is considered a security vulnerability (imagine me sending you a symlink that points to /etc/passwd etc)
yes I just need the link itself not content, content is in another directory.
it would not sync the content behind the symlink, just the link itself
But the issue looks like is:
I was moving directory around, there was some directory in projects directory that I moved to code directory. (in same syncthing folder) and created a symlink in projects to point to the code directory
I believe the issue is, syncthing confused because on Device-A, the content was moved to another folder while a symlink for it created in its original location. However on Device-B, before it finish syncing, Device still have its original directory with contents in same locations.
So in this case, A is telling be that at location X, it’s a symlink, but B still have its content there. So Syncthing confused.
I’ll try to remove all symlink and allow all devices to finish the first sync before apply the symlink again. See if it solve the issue.
In my case, I don’t think anything related to symlink leaves the root of the folder.