Add redirect_url field to track where a visitor is redirected for a visit

This commit is contained in:
Alejandro Celaya
2024-11-24 12:53:49 +01:00
parent fef512a7a3
commit 8274525f75
9 changed files with 73 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ class OrphanVisitsTest extends ApiTestCase
'potentialBot' => true,
'visitedUrl' => 'foo.com',
'type' => 'invalid_short_url',
'redirectUrl' => null,
];
private const REGULAR_NOT_FOUND = [
'referer' => 'https://s.test/foo/bar',
@@ -30,6 +31,7 @@ class OrphanVisitsTest extends ApiTestCase
'potentialBot' => false,
'visitedUrl' => '',
'type' => 'regular_404',
'redirectUrl' => null,
];
private const BASE_URL = [
'referer' => 'https://s.test',
@@ -39,6 +41,7 @@ class OrphanVisitsTest extends ApiTestCase
'potentialBot' => false,
'visitedUrl' => '',
'type' => 'base_url',
'redirectUrl' => null,
];
#[Test, DataProvider('provideQueries')]