From b1d0d0d4fd9bfdd94e80553b6fcbe8bb6bbdb57c Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Sun, 21 Jun 2026 18:54:59 +0330 Subject: [PATCH] =?UTF-8?q?Fix=20empty=20hrefs=20on=20nav=20and=20homepage?= =?UTF-8?q?=20=C2=AB=D9=85=D8=B4=D8=A7=D9=87=D8=AF=D9=87=20=D9=87=D9=85?= =?UTF-8?q?=D9=87=C2=BB=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The SEO routes added a required slug («شیفت/{roleSlug}»), which made asp-page=/Shifts/Index and /Jobs/Index generate an EMPTY href whenever no slug was supplied — so the nav «شیفت‌ها/ استخدام» and the homepage «مشاهده همه» links did nothing (Talent, which has no custom route, worked). Fix: make the slug optional ({roleSlug?}) so URL generation succeeds, and point the nav + homepage view-all links at the plain /Shifts and /Jobs routes as a guaranteed fallback. Co-Authored-By: Claude Opus 4.8 --- src/JobsMedical.Web/Pages/Index.cshtml | 4 ++-- src/JobsMedical.Web/Pages/Shared/_Layout.cshtml | 4 ++-- src/JobsMedical.Web/Program.cs | 7 +++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/JobsMedical.Web/Pages/Index.cshtml b/src/JobsMedical.Web/Pages/Index.cshtml index 1a7d827..9952e3c 100644 --- a/src/JobsMedical.Web/Pages/Index.cshtml +++ b/src/JobsMedical.Web/Pages/Index.cshtml @@ -79,7 +79,7 @@

جدیدترین شیفت‌ها

- مشاهده همه ← + مشاهده همه ←
@if (Model.LatestShifts.Count == 0) { @@ -103,7 +103,7 @@

فرصت‌های استخدامی

- مشاهده همه ← + مشاهده همه ←
@foreach (var j in Model.LatestJobs) diff --git a/src/JobsMedical.Web/Pages/Shared/_Layout.cshtml b/src/JobsMedical.Web/Pages/Shared/_Layout.cshtml index 73ee605..11cd060 100644 --- a/src/JobsMedical.Web/Pages/Shared/_Layout.cshtml +++ b/src/JobsMedical.Web/Pages/Shared/_Layout.cshtml @@ -111,8 +111,8 @@