Is there a way to get the link to pages in a Page library? Cant find a property that stores the url?
Thanks in advance
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Pages library is in a way a document library.
So, get full link of the page in the Pages library, you can use the
The REST API implementation for that would be as below:
If you have a web with publishing feature activated, the pages url is stored in the property bag at the web at the key "vti_pageslistname"
/_api/Web/Lists/getByTitle('<list title>')/items?$select=File/ServerRelativeUrl&$expand=File /_api/Web/Lists/getByTitle('<list title>')/items?$select=FieldValuesAsText/FileRef&$expand=FieldValuesAsText /_api/Web/GetFolderByServerRelativeUrl('<list url>')/Files?$select=ServerRelativeUrl