update 20.10.2025
This commit is contained in:
parent
8c11130b5d
commit
a939cd51ef
616 changed files with 84821 additions and 4121 deletions
|
|
@ -115,14 +115,15 @@ if (! function_exists('legal_url')) {
|
|||
*/
|
||||
function legal_url($path) {
|
||||
try {
|
||||
$context = app(DomainContext::class);
|
||||
// If we're on checkout domain, redirect legal links to shop domain
|
||||
if ($context->type === 'checkout') {
|
||||
$domainService = app(DomainService::class);
|
||||
return $domainService->buildUrl('main', $path);
|
||||
}
|
||||
// HOTFIX: DomainContext temporär deaktiviert
|
||||
// TODO: Nach Claude v2 Implementation wieder aktivieren
|
||||
// $context = app(DomainContext::class);
|
||||
// if ($context->type === 'checkout') {
|
||||
// $domainService = app(DomainService::class);
|
||||
// return $domainService->buildUrl('main', $path);
|
||||
// }
|
||||
|
||||
// For all other domains, use normal URL generation
|
||||
// Temporär: Verwende immer normale URL generation
|
||||
return url($path);
|
||||
} catch (Exception $e) {
|
||||
// Fallback to normal URL if something goes wrong
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue