File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ def __init__(
73
73
assets_url_path = '/assets' ,
74
74
include_assets_files = True ,
75
75
url_base_pathname = '/' ,
76
+ requests_pathname_prefix = '' ,
76
77
compress = True ,
77
78
meta_tags = None ,
78
79
index_string = _default_index ,
@@ -105,10 +106,10 @@ def __init__(
105
106
self .config = _AttributeDict ({
106
107
'suppress_callback_exceptions' : False ,
107
108
'routes_pathname_prefix' : url_base_pathname ,
108
- 'requests_pathname_prefix' : os .getenv (
109
+ 'requests_pathname_prefix' : requests_pathname_prefix or os .getenv (
109
110
'DASH_REQUESTS_PATHNAME_PREFIX' ,
110
- '/{}/ ' .format (os .environ ['DASH_APP_NAME' ])
111
- if 'DASH_APP_NAME' in os .environ else url_base_pathname ) ,
111
+ '/{}' .format (os .environ ['DASH_APP_NAME' ])
112
+ if 'DASH_APP_NAME' in os .environ else '' ) + url_base_pathname ,
112
113
'include_assets_files' : include_assets_files ,
113
114
'assets_external_path' : '' ,
114
115
})
You can’t perform that action at this time.
0 commit comments