Skip to content

Commit 9c09d6b

Browse files
committed
url_prefix do not work in Glances < 4.2.0 - Correct issue with mount nicolargo#2912
1 parent 7f04966 commit 9c09d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glances/outputs/glances_restful_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def _router(self):
279279
router.add_api_route('/', response_class=HTMLResponse, endpoint=self._index)
280280

281281
# Statics files
282-
self._app.mount(urljoin(self.url_prefix, '/static'), StaticFiles(directory=self.STATIC_PATH), name="static")
282+
self._app.mount(self.url_prefix + '/static', StaticFiles(directory=self.STATIC_PATH), name="static")
283283

284284
logger.info(f"Get WebUI in {self.STATIC_PATH}")
285285

0 commit comments

Comments
 (0)