BroadleafCommerce/blc-paypal — pull request #1 by munnja001 (2013-01-17 18:54:18+00:00)
Title: added support for relative return urls

The primary use case for this change is when a developer or user uses the IP address or a different host name to access the site. If you are using an absolute url, it will not be valid for the users alternate access path. With relative urls, the hostname is built based upon what the user has entered, fixing this issue. An additional benefit is that you no longer have to set the return url on a per environment basis. Because the host name is dynamic it works for all environments.

In order to help with backwards compatibility I made this feature disabled by default. All you have to do is set the property paypal.useRelativeUrls=true in a properties file and it will work.