Skip to content

Commit

Permalink
[Page Editor] remove path whitespace in new pages form
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed Oct 8, 2024
1 parent 3cb6bce commit 9d5a9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/beacon/live_admin/live/page_editor_live/new.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule Beacon.LiveAdmin.PageEditorLive.New do

defp build_new_page(site, [layout | _] = _layouts) do
%Beacon.Content.Page{
path: "/New Page #{NaiveDateTime.utc_now()}",
path: "/new-page-#{Date.utc_today()}",
site: site,
layout_id: layout.id,
layout: layout,
Expand Down

0 comments on commit 9d5a9b9

Please sign in to comment.