code: def get_relative_path(path):
      """
      Return a path with `requests_pathname_prefix` prefixed before it.
      Use this function when specifying local URL paths that will work
      in environments regardless of what `requests_pathname_prefix` is.
      In some deployment environments, like Dash Enterprise,
      `requests_pathname_prefix` is set to the application name,
      e.g. `my-dash-app`.
      When working locally, `requests_pathname_prefix` might be unset and
      so a relative URL like `/page-2` can just be `/page-2`.
      However, when the app is deployed to a URL like `/my-dash-app`, then
      `dash.get_relative_path('/page-2')` will return `/my-dash-app/page-2`.
      This can be used as an alternative to `get_asset_url` as well with
      `dash.get_relative_path('/assets/logo.png')`
  
      Use this function with `dash.strip_relative_path` in callbacks that
      deal with `dcc.Location` `pathname` routing.
      That is, your usage may look like:
      ```
      app.layout = html.Div([
          dcc.Location(id='url'),
          html.Div(id='content')
      ])
      @dash.callback(Output('content', 'children'), [Input('url', 'pathname')])
      def display_content(path):
          page_name = dash.strip_relative_path(path)
          if not page_name:  # None or ''
              return html.Div([
                  dcc.Link(href=dash.get_relative_path('/page-1')),
                  dcc.Link(href=dash.get_relative_path('/page-2')),
              ])
          elif page_name == 'page-1':
              return chapters.page_1
          if page_name == "page-2":
              return chapters.page_2
      ```
      """
      return app_get_relative_path(
          CONFIG.requests_pathname_prefix, path
      )
  
file_path: dash/dash/_get_paths.py
imports: from ._utils import AttributeDict
  from .None import exceptions
label_desc: Use image node_id 3 for calling a global function with example usage: get_relative_path(path) and returns: app_get_relative_path