MCPcopy Create free account
hub / github.com/dataease/SQLBot / toUrl

Function toUrl

frontend/src/views/login/xpack/PlatformClient.ts:174–179  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

172}
173
174const toUrl = (url: string) => {
175 const { origin, pathname } = window.location
176 const redirect = getCurrentRouter()
177 window.location.href =
178 origin + pathname + url + (redirect?.includes('chatPreview') ? `#${redirect}` : '')
179}
180
181export const origin_mapping: { [key: number]: string } = {
182 1: 'cas',

Callers 4

dingtalkClientRequestFunction · 0.85
callRequestAuthCodeFunction · 0.85
larkClientRequestFunction · 0.85
successFunction · 0.85

Calls 2

getCurrentRouterFunction · 0.90
includesMethod · 0.45

Tested by

no test coverage detected