0

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

1

Pages library is in a way a document library.

So, get full link of the page in the Pages library, you can use the EncodedAbsUrl property.

The REST API implementation for that would be as below:

https://site-collection-url/_api/web/lists/getbytitle('Pages')/items?$select=EncodedAbsUrl
  • hi @naijacoder, did you try the above REST endpoint ? – Gautam Sheth Dec 1 '17 at 11:37
  • hey @naijacoder, if it helped you, could you please mark it as answer, thanks :) – Gautam Sheth Jan 18 '18 at 13:10
0

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"

  • Thanks but i don't get to see this property in my rest api result – naijacoder Nov 30 '17 at 4:17
0

Three options:

/_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 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.