$return_url = $_SERVER['REQUEST_URI'];
header("Location: /logout?msg=You must login to view that page&c=2&path=$return_url");
For some reason its taking me to http://my.domain/login?msg=You%20must%20login%20to%20view%20that%20page&c=2
when it should take me to
to http://my.domain/login?msg=You%20must%20login%20to%20view%20that%20page&c=2&path=/blogs/write
if i echo $return_url it returns the right path...
So i'm not sure whats up. Help?