From b3a852d769da24b1360562b443e30ca41de23351 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Wed, 15 May 2024 11:10:02 +0200 Subject: [PATCH] Use path instead of full URL for player src --- lib/asciinema_web/controllers/recording_html.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asciinema_web/controllers/recording_html.ex b/lib/asciinema_web/controllers/recording_html.ex index e6412d2bb..81269ceaa 100644 --- a/lib/asciinema_web/controllers/recording_html.ex +++ b/lib/asciinema_web/controllers/recording_html.ex @@ -17,7 +17,7 @@ defmodule AsciinemaWeb.RecordingHTML do defdelegate username(user), to: UserHTML defdelegate title(asciicast), to: Recordings - def player_src(asciicast), do: asciicast_file_url(asciicast) + def player_src(asciicast), do: ~p"/a/#{asciicast}" <> ".#{filename_ext(asciicast)}" def player_opts(asciicast, opts) do [