Allow different context paths by making sure the context path always begins with a slash, does not end with a slash, and then append urls that begin with slashes.
Issue: MIRTH-2920