Skip to content

Commit 98ae54d

Browse files
committed
fix: update job navigation paths to remove redundant 'org' prefix
- Adjusted navigation links in JobsLive to streamline URL structure - Updated redirect URLs for GitHub authorization to reflect new path format
1 parent f9847e5 commit 98ae54d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/algora_web/live/org/jobs_live.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ defmodule AlgoraWeb.Org.JobsLive do
132132
<div>
133133
<%= if @current_user_role in [:admin, :mod] do %>
134134
<.link
135-
navigate={~p"/org/#{@current_org.handle}/jobs/#{job.id}"}
135+
navigate={~p"/#{@current_org.handle}/jobs/#{job.id}"}
136136
class="text-lg sm:text-2xl font-semibold underline"
137137
>
138138
{job.title}
@@ -216,13 +216,13 @@ defmodule AlgoraWeb.Org.JobsLive do
216216
else
217217
{:noreply,
218218
redirect(socket,
219-
external: Algora.Github.authorize_url(%{return_to: "/org/#{socket.assigns.current_org.handle}/jobs"})
219+
external: Algora.Github.authorize_url(%{return_to: "/#{socket.assigns.current_org.handle}/jobs"})
220220
)}
221221
end
222222
else
223223
{:noreply,
224224
redirect(socket,
225-
external: Algora.Github.authorize_url(%{return_to: "/org/#{socket.assigns.current_org.handle}/jobs"})
225+
external: Algora.Github.authorize_url(%{return_to: "/#{socket.assigns.current_org.handle}/jobs"})
226226
)}
227227
end
228228
end

0 commit comments

Comments
 (0)