# X_NAVIGATION_MODAL_PATH_INVALID

## Means

openModal was given something that is not a path of this origin

## Typical cause

openModal(path) addresses a modal by the hash '#<path>', so path must be an absolute path on this origin starting with a single '/' — a URL of another origin, a protocol-relative '//host' or a relative 'new' names no modal

## Fix

`openModal('/runs/new') — the modal route's own path, as its link carries it; never a full URL or a relative one`

[Routes, render and budgets](/error-codes#routes-render-and-budgets)
