eckenroed/TouchdownPHP — Issue #1: Current Page URL not predicting correctly
Author: eckenroed
Created: 2012-01-18 03:52:27+00:00
State: open

The function TDPHP_Current_Page_URL() does not properly predict the current page URL. This occurs if the application is being installed more than one directory deep within the servers document_root. For example:

> http://www.localhost -- returns okay
> http://www.localhost/site -- return okay
> http://www.localhost/sub/site -- problem occurs

This results in a problem when doing the following command:

Header( 'Location: ' . TDPHP_Current_Page_URL() );

The Current Page URL is supposed to be an SEO friendly URL returned. It's used if someone explicitly types the name of an existing .php file on the server. It reloads the page without the .php and forces the page to load through the TouchdownPHP Core.