Merge pull request #6409 from blockscout/vb-fix-network-path

Fix double slash in the path
pull/6410/head
Victor Baranov 2 years ago committed by GitHub
commit aada604545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 7
      apps/block_scout_web/lib/block_scout_web/controller.ex

@ -19,7 +19,7 @@
### Fixes
- [#6390](https://github.com/blockscout/blockscout/pull/6390) - Fix transactions responses in API v2
- [#6357](https://github.com/blockscout/blockscout/pull/6357) - Fix definitions of NETWORK_PATH, API_PATH, SOCKET_ROOT: process trailing slash
- [#6357](https://github.com/blockscout/blockscout/pull/6357), [#6409](https://github.com/blockscout/blockscout/pull/6409) - Fix definitions of NETWORK_PATH, API_PATH, SOCKET_ROOT: process trailing slash
- [#6338](https://github.com/blockscout/blockscout/pull/6338) - Fix token search with space
- [#6329](https://github.com/blockscout/blockscout/pull/6329) - Prevent logger from truncating response from rust verifier service in case of an error
- [#6309](https://github.com/blockscout/blockscout/pull/6309) - Fix read contract bug and change address tx count

@ -49,6 +49,13 @@ defmodule BlockScoutWeb.Controller do
if path =~ network_path do
path
else
network_path =
if String.starts_with?(path, "/") do
String.trim_trailing(network_path, "/")
else
network_path
end
network_path <> path
end
else

Loading…
Cancel
Save