<div>Hi All,</div>
<div> </div>
<div>I am working on product to list all the Pages in a WordPress based website.</div>
<div>I am using the XMLRPC - wp.getPages to get the list.</div>
<div> </div>
<div>I have written some logic in my code which works only if I am able to get the details of the Page I am viewing (browsing).</div>
<div>I am doing this by obtaining the current url the browser points to and trying to match it with the <strong>permaLink or link </strong>from the list returned by wp.getPages.</div>
<div> </div>
<div>This logic was working fine until two weeks back.</div>
<div>Now, my logic is failing to find a match as the permaLink or link returned when I call wp.getPages is different from the actual URL of that Page.</div>
<div> </div>
<div>This is because there is some kind of <strong>re-direction</strong> happening from the <strong>permaLink/Link</strong> returned from wp.getPages.</div>
<div> </div>
<div>For example, consider a Page "world" with Page Id - 23 and parent Page as some Page  - "Hello"</div>
<div>when wp.getPages is called, it returns a permaLink for this Page ('world') as:</div>
<div><a href="http://www.xxx.wordpress.com/?Page_id=23">www.xxx.wordpress.com/?Page_id=23</a></div>
<div> </div>
<div>But when the user browses to this Page, the url as shown in the browser address bar is</div>
<div><a href="http://www.xxx.wordpress.com/Hello/world">www.xxx.wordpress.com/Hello/world</a>.</div>
<div> </div>
<div>It's getting redirected!</div>
<div> </div>
<div><strong><font style="BACKGROUND-COLOR: #ff0000">Question:</font></strong></div>
<div><strong>Now</strong>, Is there any way - any API that maps between permaLink and the redirected URL <strong>or </strong>any other field in the struct returned by wp.getPages from which I can actually find <a href="http://www.xxx.wordpress.com/Hello/world">www.xxx.wordpress.com/Hello/world</a>.</div>

<div> </div>
<div> </div>
<div>Please help me in fixing this issue as I can't proceed without fixing this.</div>
<div> </div>
<div>Thanks and Regards,</div>
<div>Srinivas Vedantam</div>
<div> </div>
<div> </div>