add code in render_related_url to handle link with missing 'url'