Allow per-use opt-out of amp link var substitution on right clicks (for copy link address in particular)
Describe the new feature or change to an existing feature you'd like to see
Currently, both left and right (ie context menu) clicks on a link perform variable substitution. This means that, if a user right clicks to open the context menu then copies the link address, that link address will include the substituted variables. In some cases, this might be the desired behavior. But in others, like this recommendation for managing user state, it doesn't make sense. Proposed feature: per use (ie link) opt out of link var substitution on right click.
Describe alternatives you've considered
Additional context
Variable substitution in link documentation: https://github.com/ampproject/amphtml/blob/master/spec/amp-var-substitutions.md#variable-substitution-in-links Original feature request to add link variable substitution for right clicks: https://github.com/ampproject/amphtml/issues/14768 Original PR: https://github.com/ampproject/amphtml/pull/15045 Source ref: https://github.com/ampproject/amphtml/blob/master/src/service/navigation.js#L404
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.