Many thanks and no worries for the delay, I had to pick my daughter up too!
How do I get the url into the $propurl variable? If I use get_permalink() of the page, it wouldn’t include the last bit.
Any idea why the permalink code I originally posted isn’t working?