<?php
require_once __DIR__ . '/../config/bootstrap.php';
Auth::requireLogin();

$q = Validator::clean((string)($_GET['q'] ?? ''), 80);
// Single source of truth — search lives in my-campaigns
redirect('/dashboard/campaigns' . ($q !== '' ? '?q=' . urlencode($q) : ''));
