Requested feature overview description.
Attempt to trim Twitter URLs when saving changes to source fields.
For instance, using the following example URL:
https://mobile.twitter.com/odei_552/status/1544823014000590848/photo/1?s=21&t=_fhVIoonB1v9getoDXxB_Q
Trim extraneous parts of the link to:
https://twitter.com/odei_552/status/1544823014000590848
See also: topic #34368.
Why would it be useful?
Currently, Twitter uses a wide array of URL parameters depending on how pages are accessed. This leads to visual clutter in the source field and reduces consistency of sources between posts. It would also save time and effort for uploaders to automatically remove these parts, rather than require manually trimming the URL each time.
In addition, using the Post Replacement feature does not remove existing URLs. If the current source URL includes the parameter ?s=21, and the replacer removes that part of the URL in the Additional Source field, both links are now present in the source.
What part(s) of the site page(s) are affected?
The uploading page, post pages, and the post replacement page are affected.
Updated