checking links for relative situation