As far as I know there is no way in Discourse to handle rewriting Amazon links, which leads to me double-checking to make sure people aren’t trying to pull a fast one when they do post an Amazon link.
This could happen in one of two ways (or both):
- Add code to strip all affiliate codes from any Amazon URL
- Add code to replace and/or add affiliate codes into any Amazon URL.
I know this happened over at StackExchange a long time ago, so I’m guessing it’s probably fairly easy to do.
I’m not personally that worried about adding the affiliate codes, but it would be nice to make sure that other people aren’t adding them to their links, and I’m guessing it would be a really good feature for forum owners that want to make money from links on their forum.