How to get parent url?

Hi all,
it's probably something very easy, but I can't find it.

How can I get url to parent page?
I want to put this code to theme, so on all pages (except home page only, of course) there will be link "up" to parent page.

View Replies: View Best Answer
djoniba replied on at Permalink Reply

Think this one can do it for you.
MysteriousCleon replied on at Permalink Best Answer Reply
Ok, found it, problem solved. Just in case anyone else would have this problem:
$nh = Loader::helper('navigation');
$URL = $nh->getCollectionURL($page);
echo $URL;
keeasti replied on at Permalink Reply
In case you ever want to get the ultimate parent, this can help