refactor(propose): resolve landing-state target via resolved_default_id
This commit is contained in:
+1
-1
@@ -830,7 +830,7 @@ def make_router(
|
|||||||
# §22.4b: the target project's landing state. Through Plan A every
|
# §22.4b: the target project's landing state. Through Plan A every
|
||||||
# entry lands in the default project; M3-frontend routing carries a
|
# entry lands in the default project; M3-frontend routing carries a
|
||||||
# non-default target later.
|
# non-default target later.
|
||||||
target_project = auth.DEFAULT_PROJECT_ID
|
target_project = projects_mod.resolved_default_id(config)
|
||||||
landing_state = "active" if projects_mod.project_initial_state(target_project) == "active" else "super-draft"
|
landing_state = "active" if projects_mod.project_initial_state(target_project) == "active" else "super-draft"
|
||||||
|
|
||||||
entry = entry_mod.Entry(
|
entry = entry_mod.Entry(
|
||||||
|
|||||||
Reference in New Issue
Block a user