diff --git a/routes/api/shared_token.ts b/routes/api/shared_token.ts index 4102291..d55dc4c 100644 --- a/routes/api/shared_token.ts +++ b/routes/api/shared_token.ts @@ -63,7 +63,7 @@ export const handler: Handlers = { const gid = st.info.gid; const url = existed ? `${base}/gallery/${gid}?share=${token2}` - : `https://dev.ehf.lifegpc.com/#/gallery/${gid}?base=${ + : `https://dev.ehf.lifegpc.com/gallery/${gid}?base=${ encodeURIComponent(base) }&share=${token2}`; return return_data({ url, token: st }); @@ -108,7 +108,7 @@ export const handler: Handlers = { const token = encodeURIComponent(st.token); const url = existed ? `${base}/gallery/${gid}?share=${token}` - : `https://dev.ehf.lifegpc.com/#/gallery/${gid}?base=${ + : `https://dev.ehf.lifegpc.com/gallery/${gid}?base=${ encodeURIComponent(base) }&share=${token}`; return return_data({ url, token: st }, 201); diff --git a/routes/api/shared_token/list.ts b/routes/api/shared_token/list.ts index ec4b448..6e0810c 100644 --- a/routes/api/shared_token/list.ts +++ b/routes/api/shared_token/list.ts @@ -38,7 +38,7 @@ export const handler: Handlers = { const gid = st.info.gid; const url = existed ? `${base}/gallery/${gid}?share=${token2}` - : `https://dev.ehf.lifegpc.com/#/gallery/${gid}?base=${ + : `https://dev.ehf.lifegpc.com/gallery/${gid}?base=${ encodeURIComponent(base) }&share=${token2}`; return { url, token: st };