amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

URL variable substitution is not happening when clicking with wheel mouse button (Open in new tab) from Chrome

Open cappsool opened this issue 7 years ago • 3 comments

when having an a element that includes href with variable substitution, for example: <a href="/open?clientid=CLIENT_ID(_ga)&utm_source=QUERY_PARAM(utm_source)" data-amp-replace="CLIENT_ID QUERY_PARAM" target="_blank">open</a>

and clicking on it with the mouse wheel (to open in a new tab), variable substitution is not happening (using desktop Chrome).

When clicking with the left mouse button it works OK.

Chrome changed the event from "click" to "auxclick" and this is not handled in AMP code (src/service/navigation.js) In other browsers it works OK.

see: https://www.chromestatus.com/feature/5663174342737920

BTW, right click -> open in new tab was handled in #14768

cappsool avatar Mar 03 '19 10:03 cappsool

Triaging to @alabiaga , feel free to re-assign 😄

torch2424 avatar Mar 06 '19 02:03 torch2424

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.

stale[bot] avatar Jan 07 '21 21:01 stale[bot]

this works for AMP STORIES?

reulison avatar May 02 '22 21:05 reulison