Remove wireNavigate() from: - External links (docs, GitHub) - can't be handled by Livewire SPA - url()->previous() in all error pages - dynamic URL can't prefetch - Links with target="_blank" - conflicts with wire:navigate semantics Keep wireNavigate() on internal Dashboard links in error pages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
1.2 KiB
PHP
26 lines
1.2 KiB
PHP
@extends('layouts.base')
|
|
<div class="flex items-center justify-center min-h-screen">
|
|
<div class="w-full max-w-3xl px-8">
|
|
<p class="font-mono font-semibold text-red-500 text-[200px] leading-none">500</p>
|
|
<h1 class="text-3xl font-bold tracking-tight dark:text-white">Wait, this is not cool...</h1>
|
|
<p class="mt-2 text-lg leading-7 dark:text-neutral-400 text-black">There has been an error with the following
|
|
error message:</p>
|
|
@if ($exception->getMessage() !== '')
|
|
<div class="mt-6 text-sm text-red-500">
|
|
{!! Purify::clean($exception->getMessage()) !!}
|
|
</div>
|
|
@endif
|
|
<div class="flex items-center mt-10 gap-x-2">
|
|
<a href="{{ url()->previous() }}">
|
|
<x-forms.button>Go back</x-forms.button>
|
|
</a>
|
|
<a href="{{ route('dashboard') }}" {{ wireNavigate() }}>
|
|
<x-forms.button>Dashboard</x-forms.button>
|
|
</a>
|
|
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
|
|
support
|
|
<x-external-link />
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|