Discover help routes through intermediate aliases
This commit is contained in:
6
route.go
6
route.go
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user