addPostAttributionTracking(url, post) {
        // Create a deep copy
        url = new URL(url);

        if (url.searchParams.has('attribution_id') || url.searchParams.has('attribution_type')) {
            // Don't overwrite
            return url;
        }

        // Post attribution
        url.searchParams.append('attribution_id', post.id);
        url.searchParams.append('attribution_type', 'post');
        return url;
    }
Add some parameters to a URL so that the frontend script can detect this and add the required records
in the URLHistory.
@param {URL} url instance that will get updated
@param {Object} post The post from which a link was clicked
@returns {URL}