permalink redirect and entity retrieval