Alias is not valid if the path is used without the purl.
Minor fixes.
White space remove.
We need to check for nodes and not terms.
Merge pull request #4634 from openscholar/alias-purl-fix

Alias is not valid if the path is used without the purl.