matej_suchanek added a subscriber: matej_suchanek.
matej_suchanek added a comment.

Workaround: `mw.wikibase.getEntity()` always returns the target entity with the 
new id. So you can do:

  local id = ...
  local entity = mw.wikibase.getEntity(id)
  if id ~= entity.id then
      it's redirected
  end


TASK DETAIL
  https://phabricator.wikimedia.org/T96478

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: matej_suchanek, Ricordisamoa, hoo, Bene, Lydia_Pintscher, Aklapper, 
Multichill, Wikidata-bugs, aude, Mbch331



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to