title: PHP get previous page url after redirect
body: <p>I want to have a navigation bar that tells the user where they just came from.
  Example: Homepage -> Post</p>
  
  <p>But if they are in their posts manager and click on a post, I want it to say
  Posts manager -> Post</p>
  
  <p>I read that <code>$_SERVER['HTTP_REFERER']</code> is not good enough to get the full url so that's not useful as I want the navigation bar all clickable</p>
  
  <p>Any help is much appreciated!</p>