Whenever you need to get actual page url in Native PHP then you can do using this post. I give
Read more