Adjust href to local refs