Fix a relative path issue for linked resources