[backend] fixed baserev link detection in applylink