Turn reference into URL