Links in YAML header do not automatically update?

You can use a foldable callout or, for example this method:

%% 
my metadata
field1:: value
field2:: [[file1]]
%%