Discover help routes through intermediate aliases

This commit is contained in:
2026-10-20 01:03:54 +00:00
parent 4ddf960836
commit bafd365115
5 changed files with 121 additions and 59 deletions

View File

@@ -40,7 +40,11 @@ func resolveEnteredRoute(args []string, snapshot *routingSnapshot) routeResult {
case len(path) == 0:
result.kind = routeCanonical
default:
if discovery, ok := findDiscoveryPath(snapshot.discoveryFlags, resolved, path); ok {
discovery, ok := findDiscoveryPath(snapshot.discoveryFlags, resolved, path)
if !ok && len(snapshot.discoveryFlags) > 0 {
discovery, ok = findDiscoveryPath(snapshot.discoveryFlags, snapshot.aliases.ResolutionPaths(path)...)
}
if ok {
result.kind = routeDiscovery
result.discoveryPath = discovery
result.enteredPath = path.Clone()