WS-1: Canonical- & OpenGraph-Meta zentral im Web-Layout

Ergänzt web-master.blade.php um <link rel="canonical">, OpenGraph- und
Twitter-Card-Tags. Self-Canonical-Default wird portal-getrennt aus der
Portal-URL ($domainUrl) + Request-Pfad gebaut – bewusst nicht aus
url()->current(), da URL::forceRootUrl sonst alle Portale fälschlich auf
pressekonto.test kanonisieren würde. Seiten können canonical/meta_description/
og_type/og_image per @section überschreiben; release-detail als article
ausgezeichnet. Erfüllt die Canonical-Hygiene aus dem Duplicate-Content-Update §5.

Tests: tests/Feature/Web/CanonicalMetaTest.php (inkl. Cross-Portal-Negativtest).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-06-15 10:03:15 +00:00
parent ec4aa1dc3d
commit c804f3bfc3
3 changed files with 63 additions and 2 deletions

View file

@ -1,6 +1,9 @@
@extends('web.layouts.web-master')
@section('title', 'KI-Revolution in Deutschland - Business Portal 24')
@section('meta_description', 'Neue Studie zeigt massive Investitionen deutscher Unternehmen in künstliche Intelligenz für 2025.')
@section('og_type', 'article')
@section('canonical', route('release.detail', ['slug' => $releaseSlug]))
@section('content')