Skip to content

Commit

Permalink
Update lib/phoenix/live_dashboard/router.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Oct 26, 2023
1 parent 7abb707 commit 2689ad6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/phoenix/live_dashboard/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ defmodule Phoenix.LiveDashboard.Router do
unquote(scope)

unless Module.get_attribute(__MODULE__, :live_dashboard_prefix) do
@live_dashboard_prefix if path == "/",
do: "",
else: Phoenix.Router.scoped_path(__MODULE__, path)
@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 2689ad6

Please sign in to comment.