# Affiliate Plugin: Handle Amazon searches

**URL:** https://meta.discourse.org/t/affiliate-plugin-handle-amazon-searches/163634
**Category:** Feature
**Tags:** pr-welcome, affiliate
**Created:** [December 4, 2019, 7:03pm UTC](https://meta.discourse.org/t/affiliate-plugin-handle-amazon-searches/163634 "2019-12-04T19:03:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [December 4, 2019, 7:03pm UTC](https://meta.discourse.org/t/affiliate-plugin-handle-amazon-searches/163634/1 "2019-12-04T19:03:54Z")

</div>

When posting an Amazon _search result_ link, the plugin strips out the search part of the url and links to the Amazon home page instead. Example:

Search Amazon for _teddy bear_ and the url will be this:  
`https://www.amazon.com/s?k=teddy+bear&ref=nb_sb_noss_1`

The posted link is oneboxed like this:

 ![29 AM](https://global.discourse-cdn.com/meta/original/3X/0/b/0b69d3ac73f2602f92fac15dd395822b9b348aa7.png)

But the link is actually this:  
`https://www.amazon.com/s?tag=mytag-20`

And that only goes to the Amazon home page.

Any way to avoid this?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [December 18, 2019, 11:31am UTC](https://meta.discourse.org/t/affiliate-plugin-handle-amazon-searches/163634/2 "2019-12-18T11:31:46Z")

</div>

Should be pretty easy to fix. Adding #pr-welcome to handle that case.
