fix link format handling with disabled templating