Feature summary (what you would like to be able to do and where):
We may consider updating the translation output's url value in the following cases:
- The original URL is redirected to another URL (note we may not always want this, see T210871).
- The resource provides a canonical URL, different to the one requested.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
Right now, we create a target Webpage object and set its url property to the original target URL. We do not update this property in cases of URL redirection or if a canonical URL is available. Then, the output citation's url is set to this target Webpage's url.
Benefits (why should this be implemented?):
Returning the same (redirected or canonical) URL for a resource that may be accessed via different URLs is crucial for things such as understanding how many times a web resource has been cited across Wikimedia projects.