From 59e152fd299b8760b17c150b89f68d58ac83d1e8 Mon Sep 17 00:00:00 2001 From: m105 Date: Wed, 22 Jul 2026 22:56:15 +0300 Subject: [PATCH] Show rel (nofollow/sponsored/ugc) badges on the backlinks table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rel attribute has been captured on every backlink since that table was added, but never displayed — a dofollow vs. nofollow backlink is a real difference for SEO/competitive analysis, not just a link count. Links with none of those tokens show as "dofollow". Verified against real data (existing noopener-only link renders as dofollow) plus a temporary synthetic nofollow+sponsored row to confirm that branch too, removed after confirming. --- resources/views/sites/show.blade.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/resources/views/sites/show.blade.php b/resources/views/sites/show.blade.php index 29bb858..0a827d9 100644 --- a/resources/views/sites/show.blade.php +++ b/resources/views/sites/show.blade.php @@ -79,10 +79,16 @@ Referring site Source page Anchor text + Link type @forelse ($backlinks as $backlink) + @php + $relTags = $backlink->rel + ? array_values(array_intersect(preg_split('/\s+/', strtolower($backlink->rel)), ['nofollow', 'sponsored', 'ugc'])) + : []; + @endphp @if ($backlink->site) @@ -103,10 +109,17 @@ @endif {{ $backlink->anchor_text ?? '—' }} + + @forelse ($relTags as $tag) + {{ $tag }} + @empty + dofollow + @endforelse + @empty - No backlinks found yet. + No backlinks found yet. @endforelse