I have a visualforce page and a controller for it, already written. My requirement is to show the same page as one of the homepage components in the left sidebar, I did that by calling through an iframe, till now all working fine. When any page will get loaded, I want the url of the page not of the visualforce page which I have created. eg.'https://na12.salesforce.com/001/o' or 'https://na12.salesforce.com/home/home.jsp' but not the one like '/apex/mypagename'.
How to achieve this ?
<iframe src="/apex/HomePageComponent?core.apexpages.devmode.url=1" id="showskill" frameborder="0" height="100px" width="180px"> </iframe>
this is my iframe code, I want something like where I can pass a string, appending it to src probably this way, '/apex/mypage?id='+var