Skip to content

Commit

Permalink
Troubleshoot served GUI file resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Jul 6, 2023
1 parent a5bff81 commit 0d567d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ovos_gui/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def get_uri(self, framework: str = "qt5", server_url: str = None) -> str:
return self.url

if server_url:
if "://" not in server_url:
LOG.debug(f"No schema in server_url, assuming 'http'")
server_url = f"http://{server_url}"
path = f"{server_url}/{self.namespace}/{framework}/{self.name}"
LOG.info(f"Resolved server URI: {path}")
return path
Expand Down

0 comments on commit 0d567d4

Please sign in to comment.