As the title says, the Return to Merchant URL on the Paypal site is incorrectly pointing to http://www.[mywebsite].com/[mydrupalinstallfolder]//[mydrupalinstallfold...
I did a search and couldn't find anything related. Looks like a simple path problem.
Comments
Comment #1
JoshLangner commentedI think I found the problem:
The problem comes in the line: $return_url = $base_url .'/'. $return_url;
Here is what each actually does:
* $base_url = "http://www.[mywebsite].com/[mydrupalinstallfolder]"
* plus we're adding an extra "/"
* $return_url = "/[mydrupalinstallfolder]/store/history/2"
"$base_url" needs to be replaced with "base_path()", and we don't need that extra slash in there. I think that should fix it. We should also check for other misused cases of $base_url and base_path().
Comment #2
simefixing component
Comment #3
gordon commentedFixed in v4
Comment #4
(not verified) commented