Trace URL dispatch from the command line

Use dispatch inspection to discover why a path selects a particular controller:

bin/zotonic dispatch garden
bin/zotonic dispatch garden detail
bin/zotonic dispatch garden /welcome

The first form lists site rules, the second includes detail, and the third traces a path. You can also pass a full URL to include hostname-based site selection.

Compare the selected rule, controller, options, and any path rewriting with your expectation. Earlier applicable rules can win over a broad catch-all later in the list.

This is a dispatch diagnosis, not a substitute for making the HTTP request and checking authorization and rendering. See Trace a URL through dispatch and A URL reaches the wrong page.