You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that named routes are still an experimental feature, so I'm not sure if this behavior is intentional or a known limitation.
If this is not a bug, I think it would be helpful to call out in the documentation. It took me while to debug why my placeholders were not working as I would have expected.
The text was updated successfully, but these errors were encountered:
I discovered that the named_routes blocks don't go through substitution of placeholder shorthands, as with the origin server blocks (source). The fix is to have the named_routes undergo same treatment.
I've made a draft PR here. Please have a look. Thanks!
The following Caddyfile:
Produces the following config:
I see that named routes are still an experimental feature, so I'm not sure if this behavior is intentional or a known limitation.
If this is not a bug, I think it would be helpful to call out in the documentation. It took me while to debug why my placeholders were not working as I would have expected.
The text was updated successfully, but these errors were encountered: