We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92bd06f commit b345f6fCopy full SHA for b345f6f
stac_fastapi/pgstac/models/links.py
@@ -65,7 +65,9 @@ def url(self):
65
# We need to remove the root path prefix from the path before
66
# joining the base_url and path to get the full url to avoid
67
# having root_path twice in the url
68
- if root_path := self.request.scope.get("root_path"):
+ if (
69
+ root_path := self.request.scope.get("root_path")
70
+ ) and not self.request.app.root_path:
71
# self.request.app.root_path is set by FastAPI when running with FastAPI(root_path="...")
72
# If self.request.app.root_path is not set but self.request.scope.get("root_path") is set,
73
# then the root path is set by uvicorn
0 commit comments