These changes avoid multiple search results for the same name.
This also pre-calculates the nameToPath results for items in structure and for a name that appears both as a section name and a component name it gives priority to the component name path.
This fixes issues where Data always goes to the main components page rather than the Data component itself.
Fixes #452
These changes avoid multiple search results for the same name. This also pre-calculates the
nameToPath
results for items instructure
and for a name that appears both as a section name and a component name it gives priority to the component name path.This fixes issues where Data always goes to the main components page rather than the Data component itself.