Jump to main content Jump to doc navigation

bdRedirect is a simple snippet that can be used to create a redirect page that tracks clicks for the listing a link was clicked on. You need to set the &redirectResource property on your bdListings snippet calls to make sure it properly generates the redirect_url property.

Simply create a resource, and put the uncached bdRedirect snippet call in the content:

[[!bdRedirect]]

It will redirect the user to the "website" url, or to the error page if it can't be found.

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • Chris Fickling
  • CrewMark
  • deJaya
  • Lefthandmedia
  • Murray Wood
  • eydolan
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$301 per month—let's make that $500!

Learn more