You need to be CGI escaping the value of domain/application for use in a URL.