cityzen/Detour — Issue #6: Why REQUEST_URI?
Author: johndwells
Created: 2011-10-25 11:16:42+00:00
State: open

Hey there cityzen,

I've just downloaded Detour 0.6 and am wondering why you've elected to use REQUEST_URI instead of EE->uri->uri_string()? Wouldn't that be a better value to access the URI from, since different servers populate the $_SERVER global array differently?

For example on this particular project I'm working on now (and needing Detour for), I only had "ORIG_PATH_INFO" available while developing on the virtual host testing environment. I had to configure EE via the $config['uri_protocol'] to be sure my routing worked correctly. If Detour were trying to run off of REQUEST_URI, it would never had matched a route.

Cheers,
John