Issue #3515977 by gueguerreiro: Allow for explicitly specifying domain for getPathByAlias() and getAliasByPath() method
Closes #3515977