Use relative URLs for rebuild forms
Avoid mixed-content form submissions behind Coolify by rendering internal links and form actions as relative paths.
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
@endif
|
||||
|
||||
<div class="grid gap-5 lg:grid-cols-[minmax(0,1fr)_420px]">
|
||||
<form method="POST" action="{{ route('admin.data.mahasiswa.import.store') }}" enctype="multipart/form-data" class="rounded-xl border border-[#E5E7EB] bg-white p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
|
||||
<form method="POST" action="{{ route('admin.data.mahasiswa.import.store', [], false) }}" enctype="multipart/form-data" class="rounded-xl border border-[#E5E7EB] bg-white p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
|
||||
@csrf
|
||||
<div class="grid gap-5">
|
||||
<div>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" action="{{ route('admin.pengumuman.store') }}" class="rounded-xl border border-[#E5E7EB] bg-white p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
|
||||
<form method="POST" action="{{ route('admin.pengumuman.store', [], false) }}" class="rounded-xl border border-[#E5E7EB] bg-white p-6 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
|
||||
@csrf
|
||||
<div class="grid gap-5">
|
||||
<div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<div class="rounded-md border border-[#E5E7EB] bg-[#F9FAFB] px-4 py-3 text-sm text-[#15171A]">{{ $pageDate }}</div>
|
||||
<div class="rounded-md border border-[#E5E7EB] bg-[#F9FAFB] px-4 py-3 text-sm text-[#15171A]">{{ $user['username'] }} · {{ $user['nmprodi'] }}</div>
|
||||
<form method="POST" action="{{ route('legacy.logout') }}">
|
||||
<form method="POST" action="{{ route('legacy.logout', [], false) }}">
|
||||
@csrf
|
||||
<button type="submit" class="rounded-md bg-[#15171A] px-5.5 py-2.5 text-sm font-medium text-white hover:opacity-90">Logout</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user