redirection fix for dev and test environments
Merge pull request #79 from scoccia/dev/vincenzo/take-care-of-base-url-on-non-prod-environments

redirection fix for dev and test environments