Strip trackingId, lipi, refId, utm_* and other tracking parameters from LinkedIn URLs.
LinkedIn appends internal tracking IDs to every link you click on the platform. They leak information about your activity, are ugly to share, and don't change the actual destination. Cleaning the URL also makes it shorter and more presentable in messages or documents.
?trackingId= — LinkedIn's primary click tracker?lipi= — LinkedIn Page Interaction identifier?refId=, ?miniProfileUrn= — referrer identifiers?originalSubdomain= — locale routing identifier&utm_source=, &utm_medium=, &utm_campaign=, &utm_content=, &utm_term= — campaign tracking?ck=, ?fbclid= and any param starting with ref, src, utm, lipi, tracking or fbThe path (/in/username, /posts/..., /company/...) and any meaningful query params (rare on LinkedIn) are preserved. Both linkedin.com and country-specific subdomains (de.linkedin.com, etc.) work.