Skip to content

Commit

Permalink
update docs for get_relative_path
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors committed Nov 11, 2024
1 parent d2e2e54 commit 0c09088
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dash/_get_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ def display_content(path):
if page_name == "page-2":
return chapters.page_2
```
`dash.get_relative_path` is not compatible with Dash Snapshots. Use
`get_relative_path` on the app instance instead: `app.get_relative_path`.
"""
return app_get_relative_path(CONFIG.requests_pathname_prefix, path)

Expand Down

0 comments on commit 0c09088

Please sign in to comment.