why does the function 'get_current_page_url()' return the site's homepage, instead of the full path of the current page?

this is only occurring on my local server. i think it might be due to the function using a symfony function that optionally grabs info from the page headers and possibly my local server is not putting out the same headers as my remote server... however, i haven't noticed any significant differences between the content of the headers on each server yet.

anyone know?