try to be smart with link_target param

Signed-off-by: Robert Marklund <robbelibobban@gmail.com>