fix same domain link handling