Thursday, 7 June 2012

Converting URL to readable query string

Sometime we need to get the query string from URL when it's complex and has some character which we don't know how to map them.
Example: when you open SharePoint list for editing you will find URL like the below:

http://yourSiteRoot/English/News/Pages/Forms/AllItems.aspx?InitialTabId=Ribbon%2EDocument&VisibilityContext=WSSTabPersistence&SortField=%5fModerationStatus&SortDir=Asc&View=%7b4D9015AF%2d7ECD%2d4814%2dBAC9%2dAE402456253A%7d

if you want to map the query string to a meaningful URL you can use this site
http://www.albionresearch.com/misc/urlencode.php

I used it to convert my URL and below is the result:

http://yourSiteRoot/English/News/Pages/Forms/AllItems.aspx?InitialTabId=Ribbon.Document&VisibilityContext=WSSTabPersistence&SortField=_ModerationStatus&SortDir=Asc&View={4D9015AF-7ECD-4814-BAC9-AE402456253A}



it's very helpful, hope it helps you :)

No comments:

Post a Comment