This is where the error happens, `$newsLocation` is actually UrlAlias and `$newsLocation->destination` should be used instead of alias id. Also the variable could have less misleading name (below as well) :)