@ -40,8 +40,8 @@ defmodule BlockScoutWeb.APIDocsView do
path = url_params[:path]
scheme =
if Keyword.get(opts, :with_scheme, false) do
if Keyword.get(opts, :with_scheme, false) && url_params[:scheme] do
url_params[:scheme] <> "://"
"#{url_params[:scheme]}://"
end
if host != "localhost" do