Best practice to change 403 page depending which page 403? In D7 I would like to display some cause for the 403 and that changes by path (and other factors but those are easy). I can think of a few tricks like using request_uri() to see which page we were on, originally but I wonder if there is a good practice already established for this?
This: How can a module detect when the &quot;access denied&quot; page is output? along with arg() is probably how I would do it. D7 doesn't have the correct hooks for this so you have to use an API in a way that it wasn't originally intended.