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:
Power BI Dev
2026-05-03 22:06:46 +07:00
parent b95d7fed02
commit 030bb7c174
17 changed files with 35 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
<x-mahasiswa.partials.page-shell :title="$title" :sidebar="$sidebar" :page-title="$pageTitle" :page-description="$pageDescription" :page-date="$pageDate" :user="$user">
<section class="space-y-5">
<form method="GET" action="{{ route('mahasiswa.penawaran.index') }}" class="rounded-xl border border-[#E5E7EB] bg-white p-5 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
<form method="GET" action="{{ route('mahasiswa.penawaran.index', [], false) }}" class="rounded-xl border border-[#E5E7EB] bg-white p-5 shadow-[0_8px_12px_rgba(13,10,44,0.04)]">
<div class="grid gap-4 lg:grid-cols-[220px_minmax(0,1fr)_auto] lg:items-end">
<div>
<label class="text-sm font-semibold text-[#15171A]">Status Judul</label>
@@ -58,7 +58,7 @@
<div class="flex justify-end gap-2 whitespace-nowrap">
<a href="{{ route('mahasiswa.penawaran.show', ['id' => $item->idPenawaran], false) }}" class="rounded-md border border-[#D1D5DB] px-3 py-2 text-xs font-medium text-[#15171A] hover:bg-[#F9FAFB]">Lihat</a>
@if ($available)
<form method="POST" action="{{ route('mahasiswa.penawaran.book', ['id' => $item->idPenawaran]) }}">
<form method="POST" action="{{ route('mahasiswa.penawaran.book', ['id' => $item->idPenawaran], false) }}">
@csrf
<button type="submit" class="rounded-md bg-[#15171A] px-3 py-2 text-xs font-medium text-white hover:opacity-90">Booking</button>
</form>