Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(electron): add search to proxied url (#4852)

Peng Xiaoda9934fbdcdd
diff --git a/packages/frontend/electron/src/main/protocol.ts b/packages/frontend/electron/src/main/protocol.ts
index 20cb933d81..9b622a0cf4 100644
--- a/packages/frontend/electron/src/main/protocol.ts
+++ b/packages/frontend/electron/src/main/protocol.ts
@@ -46,7 +46,10 @@ async function handleFileRequest(request: Request) {
const urlObject = new URL(request.url);
if (isNetworkResource(urlObject.pathname)) {
// just pass through (proxy)
- return net.fetch(CLOUD_BASE_URL + urlObject.pathname, clonedRequest);
+ return net.fetch(
+ CLOUD_BASE_URL + urlObject.pathname + urlObject.search,
+ clonedRequest
+ );
} else {
// this will be file types (in the web-static folder)
let filepath = '';