-
|
With this root routes file Marten.routes.draw do
path "/nested-app", NestedApp::ROUTES, name: "nested_app"
endA template file cannot reference this route using Marten.routes.draw do
path "/nested-app", NestedApp::ROUTES, name: "nested_app"
path "/direct-to-handler", DirectHandler, name: "direct"
endThen I expect that with the nested routes, the same behaviour should hold? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey! 👋 Your I imagine your |
Beta Was this translation helpful? Give feedback.
Hey! 👋
Your
nested_approute is an including route and as such it does not map to a concrete handler: only concrete handler routes can be resolved using theurltemplate tag.I imagine your
NestedApp::ROUTESconstant contains another route map, so instead of trying to resolvenested_appyou should probably try to resolve the URL of one of the underlying (namespaced) routes (eg.{% url "nested_app:sub_route" %}).