question

SanjayKumarR-0334 avatar image
0 Votes"
SanjayKumarR-0334 asked EmilyDu-MSFT commented

SharePoint URL query string parameter (RootFolder vs ID)

Hi Team,

I am trying to form a pretty URL from the raw URL which is copied directly from the browser.

For example the raw URL(2013 server) will be like,

http://sp.company.com/sites/blah/Documents/Forms/AllItems.aspx?RootFolder=%2Fsites%2Fblah%2Ffolder1%2Ffolder2&FolderCTID=0x00000000000000000000000000000000000000&View=%7123456789%212345%212345%212345%21234568936418%7D

I am trying to form a clean URL by appending the Root url + value of the RootFolder from the query string.
Example:
http://sp.company.com + %2Fsites%2Fblah%2Ffolder1%2Ffolder2


But on the online SharePoint server, when I copy the URL directly from the browser, I am not able to see the RootFolder parameter.

it looks like the below,

https://sp.company.com/teams/SharePointTest2/FederatedDoc/Forms/AllItems.aspx?newTargetListUrl=%2Fteams%2FSharePointTest2%2FFederatedDoc&viewpath=%2Fteams%2FSharePointTest2%2FFederatedDoc%2FForms%2FAllItems%2Easpx&viewid=87f8dD4dcb%2Da3fb%2D4a4a2e7b559a&id=%2Fteams%2FSharePointTest2%2FFederatedDoc%2Ftest%201

I am not sure, whether I should use "id" value to form the clean URL? Please help me in resolving this.

Regards,
Sanjay

office-sharepoint-online
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your question. 

We are currently looking into this issue and will give you an update as soon as possible.

Thank you for your understanding and support.

0 Votes 0 ·

1 Answer

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered EmilyDu-MSFT commented

@SanjayKumarR-0334

The composition of root folder URL in the SharePoint Online and SharePoint server is different.

You could use following clean URL to access root folder in the SharePoint Online.

https://sp.company.com/teams/SharePointTest2/FederatedDoc/Forms/AllItems.aspx?id=%2Fteams%2FSharePointTest2%2FFederatedDoc%2Ftest%201


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@EmilyDu-MSFT Thanks for you response.

So i need to make use of "id" parameter to form the clean URL incase if it is online server. Thank you.

0 Votes 0 ·

@SanjayKumarR-0334

Yes, it's right.


If an Answer is helpful, please click "Accept Answer" and upvote it.

0 Votes 0 ·