Get path of Page Manager page Basically I have created a page and it shows up fine.



When I do a arg or current_path on that page it shows as a 404 path, not the one defined in the page.

current_path() =&gt; error-404
$_GET[q] =&gt; error-404
arg() =&gt; array(0 =&gt; error-404)


Is there a function that returns the path/URL that is set in the Page?
Node that current_path() returns the URL path of the current page, not the URL. So on the http://www.example.com/latest-deals page it will return just latest-deals.

If you need to convert that to an actual URL, use url(current_path()), which will return /latest-deals. Or url(current_path(), array('absolute' =&gt; TRUE)) if you need the absolute URL.