-
With this root routes file Marten.routes.draw do
path "/nested-app", NestedApp::ROUTES, name: "nested_app"
end A 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"
end Then 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_app
route is an including route and as such it does not map to a concrete handler: only concrete handler routes can be resolved using theurl
template tag.I imagine your
NestedApp::ROUTES
constant contains another route map, so instead of trying to resolvenested_app
you should probably try to resolve the URL of one of the underlying (namespaced) routes (eg.{% url "nested_app:sub_route" %}
).