Fix slug in Document.as_link