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 02b6025 commit 9fde7a9Copy full SHA for 9fde7a9
optimade/server/routers/utils.py
@@ -215,11 +215,9 @@ def get_entries(
215
query["page_offset"] = int(query.get("page_offset", [0])[0]) + len(results)
216
urlencoded = urllib.parse.urlencode(query, doseq=True)
217
root_path = CONFIG.root_path.rstrip("/") if CONFIG.root_path else ""
218
- base_url = (
219
- f"{get_base_url(request.url)}{request.url.path.replace(root_path, '')}"
220
- )
+ url = f"{get_base_url(request.url)}{request.url.path.replace(root_path, '')}"
221
222
- links = ToplevelLinks(next=f"{base_url}?{urlencoded}")
+ links = ToplevelLinks(next=f"{url}?{urlencoded}")
223
else:
224
links = ToplevelLinks(next=None)
225
0 commit comments