-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle assets and requests_pathname_prefix #489
Comments
Have routes and requests the same value |
@boludo00 Can you try dash version 0.35.3 and see if it fixes your issue ? |
I stumbled over the same (or similar) issue with dash=1.0.1. My app is served under app.config.update({
"routes_pathname_prefix": '',
'requests_pathname_prefix': ''
}) all internal assets are served fine (aka relatively to the dash app page's location). <script src="_dash-component-suites/dash_renderer/dash_renderer.min.js?v=1.0.0&m=1564659726"></script> But the files automatically served via the <link rel="icon" type="image/x-icon" href="/assets/favicon.ico?m=1564567628.0714939">
<link rel="stylesheet" href="/assets/globalloading.css?m=1564567628.0714939"> Setting A similar observation was made here: https://community.plot.ly/t/assets-folder-not-found-in-docker/14673/8 |
So I currently have an API Gateway serving my Dash app under the /dev/ base path.
I have specified my Dash.dash app with
and most the app renders fine however, I noticed that the files in my assets directory are not being found since when the app loads, its looking in /assets/ instead of /dev/assets.
This seems like a quick fix on my part, but I'm not sure where to start since this library is so new to me.
The text was updated successfully, but these errors were encountered: