cabennett85/gittest — Issue #701: BC links don't work on localhost
Author: cabennett85
Created: 2012-03-02 00:09:43+00:00
State: open

an example link is the "cause dashboard" link on the cause page or the link back to the "cause page" from the dashboard.

I think it has to do with the getRootFolder function in broadcause_admin_functions.php:

It hardcodes:
{{{
$bcAjaxFolder = $dev_mode ? 'http://localhost/broadcause' : 'http://www.broadcause.com';
}}}

but at work my virtual host name is ep.localhost and at home it is experienceproject.localhost, so hardcoding localhost won't work. However, when I changed it to $_SERVER['SERVER_NAME'] funny stuff happened so I'm not messing with it for now (for some reason the link looked fine with that change but when I clicked on it it would redirect to experienceproject.localhost/broadcause/experienceproject.localhost/... so it seemed to be appearing twice)