Generate full links to resources. Bug fixes