fix create redirect for existing path on custom domain site #4799
never prepend external paths with purl, fix logic #4799
Merge pull request #4845 from openscholar/4799-existing-domain

fix create redirect for existing path on custom domain site #4799