fixes #5041
#5041
Merge pull request #5044 from dotCMS/issue-5041-vanity-URL-to-external-sites-broken

Issue 5041 vanity url to external sites broken