chore: commit current workspace changes

This commit is contained in:
2026-05-02 09:37:14 +02:00
parent 79235133f0
commit caf1464aa5
121 changed files with 485218 additions and 181663 deletions

View File

@@ -62,3 +62,12 @@ it('does not treat reserved subdomains as profile hosts', function () {
$this->call('GET', '/sections', [], [], [], ['HTTP_HOST' => 'www.skinbase26.test'])
->assertRedirect('/categories');
});
it('redirects arbitrary single-subdomain routes to the canonical host', function () {
$response = app(Kernel::class)->handle(
Request::create('/art/15234/similar', 'GET', ['page' => '2'], [], [], ['HTTP_HOST' => 'fu4z7d.skinbase26.test'])
);
expect($response->getStatusCode())->toBe(301);
expect($response->headers->get('location'))->toBe('http://skinbase26.test/art/15234/similar?page=2');
});