Fixed issue with applying relative links