Voting starts in March for the Drupal Association Board election.
I know redirection must be working for other people, so tell me if you think there's something about my setup that's causing this.
With redirection on, and mobile / desktop URL as:
When I go to
http://cvg.loc/mypath, I get redirect to this URL:
The problem appears to be in
mobile_tools_get_redirect_url(), with these lines:
$currentPath = str_replace(base_path(), "/" ,$currentUrl); $url = $base . $currentPath ;
$currentURL is "http://cvg.loc/mypath"
base_path() returns "/", so the domain name isn't getting stripped out of
$currentURL, and the mobile URL in
$base is added.
When I change those lines to this, the problem disappears:
global $base_url; $currentPath = str_replace($base_url, "" ,$currentUrl); $url = $base . $currentPath ;