Skip to content

Commit

Permalink
Revert #2310
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Jul 10, 2019
1 parent 1cd8ef5 commit cc23b25
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ defmodule BlockScoutWeb.APIDocsView do

def blockscout_url do
if System.get_env("BLOCKSCOUT_HOST") do
%URI{host: host, scheme: scheme} = URI.parse(Endpoint.url())
path = System.get_env("NETWORK_PATH") || "/"

scheme <> "://" <> host <> path
"http://" <> System.get_env("BLOCKSCOUT_HOST")
else
Endpoint.url()
end
Expand Down

0 comments on commit cc23b25

Please sign in to comment.