Skip to content

Commit d2e2e54

Browse files
committed
update docs for get_asset_url
1 parent 4d580da commit d2e2e54

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dash/dash.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,18 +1559,16 @@ def get_asset_url(self, path):
15591559
`path` is the path passed to `get_asset_url`.
15601560
15611561
Use `get_asset_url` in an app to access assets at the correct location
1562-
in different environments. `requests_pathname_prefix` in a deployed app
1563-
on Dash Enterprise includes the app name.
1564-
1565-
For an app on Dash Enterprise called "my-app",
1562+
in different environments. In a deployed app on Dash Enterprise,
1563+
`requests_pathname_prefix` is the app name. For an app called "my-app",
15661564
`app.get_asset_url("image.png")` would return:
15671565
15681566
```
15691567
/my-app/assets/image.png
15701568
```
15711569
1572-
While the same app running locally,
1573-
without `requests_pathname_prefix` set would return:
1570+
While the same app running locally, without
1571+
`requests_pathname_prefix` set, would return:
15741572
15751573
```
15761574
/assets/image.png

0 commit comments

Comments
 (0)