Skip to main content

Smart Links

The Smart Links feature of the TanaFlows theme is an automated solution that manages all links (URLs) on your website.

It protects your SEO scores, boosts security, and enhances the user experience without requiring you to manually configure every single link.


Key Benefits & How It Works

The system automatically processes all links in your articles through the following intelligent mechanisms:

1. Target & Security Auto-pilot

  • How it works: The system automatically scans all links in your articles. If it detects an external link (pointing to a different domain than yours), it automatically adds the target="_blank" attribute to open it in a new tab.
  • Maximum Security: Simultaneously, the system automatically assigns the rel="noopener noreferrer" attribute. This prevents security exploits like tabnabbing (where a third-party website could take control of your original tab).
  • User Retention: Readers won’t accidentally leave your website when clicking reference links.

2. Smart Affiliate Detector

This is an extremely valuable feature for content creators and bloggers earning revenue from Affiliate Marketing:

  • Auto-detection: The system scans and identifies affiliate links if:
    1. The path contains common affiliate parameters such as: ?aff=, ?via=, ?affiliate=, ?coupon=, ?promo=, ?clickid=, ?shop=, etc.
    2. Or the link contains the markup attribute data-aff="true".
  • SEO Protection: Once identified, it automatically appends the rel="sponsored nofollow" attribute. According to Google guidelines, paid and affiliate links must be marked as such to avoid search ranking penalties.
  • Link Juice Optimization: For standard external links (like Wikipedia or references), the system removes sponsored nofollow tags to maintain a natural flow of authority (Link Juice).

3. Dynamic Content Support (Event Delegation)

  • How it works: When pages load more posts dynamically (via a “Load More” button or infinite scroll), new links appear. Instead of running a heavy scan loop that slows down the browser, Smart Links uses global event delegation (click listener).
  • Benefits: The moment a reader clicks a link, the system calculates and applies security/SEO attributes in a few milliseconds right before redirecting, keeping the website responsive and lightweight.

4. Smart Exclusions

The system automatically ignores special links to keep them working correctly:

  • Communication protocols: Phone calls (tel:), email (mailto:), SMS (sms:).
  • Internal page jumps (like table of contents hashes #).
  • Links marked with data-internal="true" or data-no-prefetch.

When writing, if you want to force any link (including internal ones) to open in a new tab, simply use the following method:

Method: Append ?newtab=true to the URL

When adding a link in the Ghost editor, simply append ?newtab=true to the end of the URL.

  • Internal link example: https://yourdomain.com/guide/?newtab=true
  • External link example: https://externaldomain.com/docs/?newtab=true

How it works

When clicked, Smart Links detects this parameter, configures it to open in a new tab (target="_blank"), adds appropriate security tags, and hides the parameter from the browser’s address bar to keep URLs clean.