Replace getPathAlias by getAliasByPath.