Generate relative paths for assets and links