Skip to content

Commit

Permalink
Strip suffix slashes to prevent double-slash issues (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
cblavier authored Oct 26, 2023
1 parent 17daa01 commit adb5e38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/phoenix/live_dashboard/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ defmodule Phoenix.LiveDashboard.Router do

unless Module.get_attribute(__MODULE__, :live_dashboard_prefix) do
@live_dashboard_prefix Phoenix.Router.scoped_path(__MODULE__, path)
|> String.replace_suffix("/", "")
def __live_dashboard_prefix__, do: @live_dashboard_prefix
end
end
Expand Down

0 comments on commit adb5e38

Please sign in to comment.