🐛 Don't append linker for exact domain match, even if in domains.#32100
Conversation
micajuine-ho
left a comment
There was a problem hiding this comment.
Hi @adamsilverstein, thanks for your contribution. Can we add a test for this use case in extensions/amp-analytics/0.1/test/test-linker-manager.js?
Additionally, can we add some documentation in extensions/amp-analytics/linker-id-forwarding.md, under destinationDomains describing how we won't link if it's an exact match?
|
@micajuine-ho yes, I will work on those items. Based on the discussion in the issue, are we going with adding a |
No, right now the only valid use-case seems to be debugging locally. So if there is another use-case, we can consider adding it in. |
# Conflicts: # extensions/amp-analytics/0.1/linker-manager.js
|
@micajuine-ho I took a pass at a test and docs. Can you please review and revise or advise how to improve? Also, can you tell me the command to run the test file I added the test to? I'm struggling to figure it out! |
|
Changes LGTM. I've also verified with the ads team that we do not expect Linker to be used in ad environments.
Also, before you submit, run:
and address any issues that command brings up. You also might want to rebase again, since I know we've been making a lot of infra changes and it doesn't hurt to keep your this branch up to date. |
|
Thanks for the help @micajuine-ho - I have updated the PR:
|
|
This is great news! @micajuine-ho with this work we can now enable a Can you add this to the list for the @ampproject/wg-components group? |
|
Yup adding it to our sprint planning! |
So does this mean #19905 will be brought back? |
|
We should consider the design from scratch, perhaps we can partner on an implementation soon? |
@micajuine-ho In the case of WordPress.com, we relied on internal linking to transition from our AMP Landing Pages to Calypso; which happen to share the same domain. |
|
We can certainly discuss adding more features into the Linker :) |
Fixes #30176