Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(errors): update error pages to provide navigation options

Andras Bacsai6c75e893038e
diff --git a/resources/views/errors/400.blade.php b/resources/views/errors/400.blade.php
index d0fbf306b2..4b5956142e 100644
--- a/resources/views/errors/400.blade.php
+++ b/resources/views/errors/400.blade.php
@@ -11,9 +11,12 @@
malformed syntax.
</p>
@endif
- <div class="flex items-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
+ <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') }}">
+ <x-forms.button>Dashboard</x-forms.button>
</a>
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
diff --git a/resources/views/errors/401.blade.php b/resources/views/errors/401.blade.php
index b9e6afa853..95449c1418 100644
--- a/resources/views/errors/401.blade.php
+++ b/resources/views/errors/401.blade.php
@@ -5,9 +5,12 @@
<h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
<p class="text-base leading-7 dark:text-neutral-400 text-black">You don't have permission to access this page.
</p>
- <div class="flex items-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
+ <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') }}">
+ <x-forms.button>Dashboard</x-forms.button>
</a>
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
diff --git a/resources/views/errors/402.blade.php b/resources/views/errors/402.blade.php
index 9758dec2d7..6534615dfb 100644
--- a/resources/views/errors/402.blade.php
+++ b/resources/views/errors/402.blade.php
@@ -4,9 +4,12 @@
<div>
<p class="font-mono font-semibold text-7xl dark:text-warning">402</p>
<h1 class="mt-4 font-bold tracking-tight dark:text-white">Payment required.</h1>
- <div class="flex items-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
+ <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') }}">
+ <x-forms.button>Dashboard</x-forms.button>
</a>
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php
index 1c792420fb..50317700d8 100644
--- a/resources/views/errors/403.blade.php
+++ b/resources/views/errors/403.blade.php
@@ -5,9 +5,12 @@
<h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1>
<p class="text-base leading-7 dark:text-neutral-400 text-black">You don't have permission to access this page.
</p>
- <div class="flex items-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
+ <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') }}">
+ <x-forms.button>Dashboard</x-forms.button>
</a>
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php
index ace38f1e0e..67fb0f0f10 100644
--- a/resources/views/errors/404.blade.php
+++ b/resources/views/errors/404.blade.php
@@ -6,9 +6,12 @@
<p class="text-base leading-7 dark:text-neutral-400 text-black">Sorry, we couldn’t find the page you’re looking
for.
</p>
- <div class="flex items-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
+ <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') }}">
+ <x-forms.button>Dashboard</x-forms.button>
</a>
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
diff --git a/resources/views/errors/419.blade.php b/resources/views/errors/419.blade.php
index 841da45b1a..5367898f0a 100644
--- a/resources/views/errors/419.blade.php
+++ b/resources/views/errors/419.blade.php
@@ -6,9 +6,12 @@
<p class="text-base leading-7 dark:text-neutral-300 text-black">Sorry, we couldn’t find the page you’re looking
for.
</p>
- <div class="flex items-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
+ <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') }}">
+ <x-forms.button>Dashboard</x-forms.button>
</a>
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php
index 8b7477fb59..36c8e95f6c 100644
--- a/resources/views/errors/429.blade.php
+++ b/resources/views/errors/429.blade.php
@@ -7,9 +7,12 @@
few
seconds before trying again.
</p>
- <div class="flex items-center mt-10 gap-x-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
+ <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') }}">
+ <x-forms.button>Dashboard</x-forms.button>
</a>
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php
index da93f7669d..149be26854 100644
--- a/resources/views/errors/500.blade.php
+++ b/resources/views/errors/500.blade.php
@@ -10,9 +10,12 @@
{!! Purify::clean($exception->getMessage()) !!}
</div>
@endif
- <div class="flex items-center mt-10 gap-6">
- <a href="/">
- <x-forms.button>Go back home</x-forms.button>
+ <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') }}">
+ <x-forms.button>Dashboard</x-forms.button>
</a>
<a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
support
diff --git a/resources/views/errors/503.blade.php b/resources/views/errors/503.blade.php
index 2f80411348..7db859624a 100644
--- a/resources/views/errors/503.blade.php
+++ b/resources/views/errors/503.blade.php
@@ -7,9 +7,17 @@
your
patience.
</p>
- <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact
- support
- <x-external-link />
- </a>
+ <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') }}">
+ <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>