mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FIX: missing route for edit components (#26874)
In this PR separate route for components was introduced https://github.com/discourse/discourse/pull/26644 However, the route to edit components was missed and it was 404 when reloaded. Meta: https://meta.discourse.org/t/missing-admin-theme-component-edit-route/306560
This commit is contained in:

committed by
GitHub

parent
755ff43dc1
commit
e607dd3767
@ -259,6 +259,7 @@ Discourse::Application.routes.draw do
|
||||
get "themes/:id/:target/:field_name/edit" => "themes#index"
|
||||
get "themes/:id" => "themes#index"
|
||||
get "components/:id" => "themes#index"
|
||||
get "components/:id/:target/:field_name/edit" => "themes#index"
|
||||
get "themes/:id/export" => "themes#export"
|
||||
get "themes/:id/schema/:setting_name" => "themes#schema"
|
||||
get "components/:id/schema/:setting_name" => "themes#schema"
|
||||
|
Reference in New Issue
Block a user