I am redirecting a few different admin tools back to a modx site/page for unauthorized access.
The redirect has the modx page id and a URL variable in the URL.
On the modx page it has the an "Unauthorized Access" and then has a PHP snippet.
the snippet says "Requested URL: [URL]".
It works fine, but its caching the URL.... so if you go to the other system and get redirected back to the modx main site then the URL could be wrong.
Is there a way to turn off the cache? is there a better way of doing this ?
here is my php snippet code:
$site_text = "";
$site_text .= "Requested URL: ";
$site_text .= "$_GET[URL]";
$site_text .= "<BR><BR><BR>You have been redirected to domain.com";