redirect /admin/theme to on-site editor at /?edit=theme
All checks were successful
deploy / deploy (push) Successful in 1m41s
All checks were successful
deploy / deploy (push) Successful in 1m41s
- Phase 5 was already implemented (URL mode activation via ?edit param) - Phase 6: Add RedirectController to redirect /admin/theme → /?edit=theme - Update admin sidebar and dashboard links to point directly to /?edit=theme - Delete old Admin.Theme.Index LiveView and template (no longer needed) - Update tests for new redirect behavior Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
10
lib/berrypod_web/controllers/redirect_controller.ex
Normal file
10
lib/berrypod_web/controllers/redirect_controller.ex
Normal file
@@ -0,0 +1,10 @@
|
||||
defmodule BerrypodWeb.RedirectController do
|
||||
use BerrypodWeb, :controller
|
||||
|
||||
@doc """
|
||||
Redirects /admin/theme to the on-site theme editor.
|
||||
"""
|
||||
def theme(conn, _params) do
|
||||
redirect(conn, to: "/?edit=theme")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user