about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gn2/wqflask/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index f723958a..ec1c2b74 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -326,8 +326,8 @@ def gnqna():
 @app.route("/editor/edit", methods=["GET"])
 @require_oauth2
 def edit_gn_doc_file():
-    file_path = request.args.get("file-path", "")
-    response = requests.get(f"http://localhost:8091/edit?file_path={file_path}")
+    file_path = urllib.parse.urlencode({"file_path": request.args.get("file-path", "")})
+    response = requests.get(f"http://localhost:8091/edit?{file_path}")
     response.raise_for_status()
     return render_template("gn_editor.html", **response.json())