Referer header location incorrect redirect...
Posted: Mon Aug 20, 2007 9:46 pm
Here is my PHP...
Let's say I edit...
http://localhost/version28/home/home-news.php
When I save the file (template editor) I get redirected based on the above code to...
http://localhost/version28/editor/home-news.php
How can I dynamically adapt it so the header location gives me the desired path?
Code: Select all
$page = $_SESSION['referer'];
header('Location: '.$page);http://localhost/version28/home/home-news.php
When I save the file (template editor) I get redirected based on the above code to...
http://localhost/version28/editor/home-news.php
How can I dynamically adapt it so the header location gives me the desired path?