diff --git a/lib/changelog_web/templates/episode/show.html.eex b/lib/changelog_web/templates/episode/show.html.heex similarity index 87% rename from lib/changelog_web/templates/episode/show.html.eex rename to lib/changelog_web/templates/episode/show.html.heex index 48a504166f..15b7397113 100644 --- a/lib/changelog_web/templates/episode/show.html.eex +++ b/lib/changelog_web/templates/episode/show.html.heex @@ -57,16 +57,16 @@
@@ -82,7 +82,7 @@ <% end %> -We're hard at work on the transcript for this episode! <%= if @current_user do %> <%= if Subscription.is_subscribed(@current_user, @episode) do %> - <%= link("Click here", to: Routes.episode_path(@conn, :unsubscribe, @podcast.slug, @episode.slug), method: :post) %> to cancel your transcript notification. 💪
+ <%= link("Click here", to: ~p"/#{@podcast.slug}/#{@episode.slug}/unsubscribe", method: :post) %> to cancel your transcript notification. 💪 <% else %> - <%= link("Click here", to: Routes.episode_path(@conn, :subscribe, @podcast.slug, @episode.slug), method: :post) %> and we'll notify you when it's ready. 💪 + <%= link("Click here", to: ~p"/#{@podcast.slug}/#{@episode.slug}/subscribe", method: :post) %> and we'll notify you when it's ready. 💪 <% end %> <% else %> - <%= link("Sign in", to: Routes.sign_in_path(@conn, :new)) %> / <%= link("up", to: Routes.person_path(@conn, :join)) %> to access transcript notifications. 💪 + <%= link("Sign in", to: ~p"/in") %> / <%= link("up", to: ~p"/join") %> to access transcript notifications. 💪 <% end %> + <% end %>