We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 707d98b commit 9e7feffCopy full SHA for 9e7feff
1 file changed
frontend/packages/core/src/pages/Login.tsx
@@ -153,8 +153,8 @@ const Login: FC = () => {
153
154
// 打开飞书授权页面
155
const openFeishuLogin = () => {
156
- const href = location.href
157
- const authUrl = `https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id=${feishuAppId}&redirect_uri=${href}`
+ const href = window.location.origin + window.location.pathname
+ const authUrl = `https://accounts.feishu.cn/open-apis/authen/v1/authorize?client_id=${feishuAppId}&redirect_uri=${encodeURIComponent(href)}`
158
localStorage.setItem('feishuCallbackUrl', href)
159
window.location.href = authUrl
160
}
0 commit comments