# Affiliate link functions - rewrite

**URL:** https://meta.discourse.org/t/affiliate-link-functions-rewrite/325606
**Category:** Feature
**Created:** [September 9, 2024, 9:29am UTC](https://meta.discourse.org/t/affiliate-link-functions-rewrite/325606 "2024-09-09T09:29:08Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 9, 2024, 6:19pm UTC](https://meta.discourse.org/t/affiliate-link-functions-rewrite/325606/3 "2024-09-09T18:19:23Z")

</div>

If you’re talking about for something other than Amazon, I have a theme component that does it in [what I thought to be a strange way](https://www.literatecomputing.com/blog/2023-08-08-discourse-affiliate-linker/). It would need to be changed to work for anything other than the home page for the site.

> [@Discourse-affiliate-linker](https://meta.discourse.org/t/discourse-affiliate-linker/320824):
>
> information_sourceSummary Replace links with affiiliate linkseyeglassesPreview [Discourse-affiliate-linker - Plugins and Themes - Literate Computing Dashboard](https://dashboard.literatecomputing.com/t/discourse-affiliate-linker/950)hammer_and_wrenchRepository [GitHub - literatecomputing/discourse-affiliate-linker: Replace links with referral links · GitHub](https://github.com/literatecomputing/discourse-affiliate-linker)questionInstall Guide [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Rep…

You’re welcome to fork it, or, if you have a budget, contact me and I’ll consider either modifying the above component or making an other one for you (depending on which makes more sense).

---

_[View the full topic](https://meta.discourse.org/t/affiliate-link-functions-rewrite/325606)._
