Location Data and Content Association

This guide explains how to use location data to ensure help content appears in the correct UI context within New Relic One.

Understanding Location Data

New Relic One consists of multiple capabilities (Nerdpacks) organized through primary and secondary navigation menus. The same view can appear in different contexts—for example, APM & Services versus Browser, or All Entities versus Kubernetes.

How Location Context Works

Each Nerdlet defines its context in its nr1.json configuration file. The platform uses navigation context IDs to uniquely identify the active capability and context combination.

The location ID structure varies based on the view type:

  • Standalone nerdpack: Identified by nerdpack ID only
  • Nerdlet within a nerdpack: Combines nerdpack ID and nerdlet ID
  • Multi-context nerdlet: Includes primary and secondary navigation locations from nr1.json
  • Dynamic view nerdlet: Incorporates query parameters
  • Entity-specific view: Associated with a particular entity

The in-app-help-service currently requires explicit location IDs for each context. Generic content that applies across all contexts of a nerdpack is not yet supported—each context must be individually associated.

Location ID Examples

Standalone Nerdlet

Support Nerdlet

Location ID: help-xp.home

Navigation data:

  • mainNerdletId: help-xp.home

New Relic UI
Loading image...

Multi-Context Nerdpack

APM & Services > Vulnerability Management

Location ID: vulnerability-management.scoped/APM/vulnerability-management.scoped

This context is defined in the nerdlet's nr1.json file, indicating where it can appear in the navigation hierarchy.

Vulnerability Management Home

Location ID: vulnerability-management.home/SECURITY

New Relic UI
Loading image...

Dynamic View Nerdpack

Kubernetes

Location ID: nr1-core.home/KUBERNETES

Navigation data:

  • mainNerdletId: nr1-core.home
  • activePrimaryNavigation: KUBERNETES

New Relic UI
Loading image...

APM & Services > Summary

Location ID: apm.overview/APM/apm.overview

Navigation data:

  • mainNerdletId: apm.overview
  • activePrimaryNavigation: APM
  • activeEntityOverviewNavigation: apm.overview
  • entityGuid: MXxBUE18QVBQTElDQVRJT058MjE1MTc4NDE

New Relic UI
Loading image...

APM Overview Landing Page

Location ID: nr1-core.home/APM

Navigation data:

  • mainNerdletId: nr1-core.home
  • activePrimaryNavigation: APM

New Relic UI
Loading image...

Associating Content Across Multiple Contexts

When a nerdpack appears in multiple capability contexts, follow these steps to associate help content correctly:

  1. Identify all contexts: Review the nerdpack's nr1.json file or consult the product manager to find all contexts where it appears
  2. Navigate to each context: Visit each relevant UI page in the staging environment
  3. Open the Help panel: Click the global ? entry point
  4. Access Navigation Information: Click the Navigation Information button at the bottom of the panel
  5. Copy the location ID: Copy the suggested ID displayed for that context
  6. Update content configuration: Add all collected IDs to the location frontmatter field (as an array) in the relevant MDX file in the in-app-help-service repository

Location ID Structure

The suggested location ID follows this pattern derived from the useNavigationContext() platform hook:

mainNerdletId/activePrimaryNavigation/activeSecondaryNavigation/activeEntityOverviewNavigation

Key characteristics:

  • Uses / as the delimiter (because . appears in some IDs)
  • Components are included only when present in the navigation state
  • Entity-specific association via entityGuid is not currently supported

Technical Resources