MCPcopy Create free account
hub / github.com/codecombat/codecombat / goRedirect

Method goRedirect

app/views/ChinaBridgeView.js:42–49  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

40 }
41
42 goRedirect (value) {
43 const redirectURL = utils.getQueryVariable('redirect')
44 let url = (value || this.history) === 'koudashijie' ? 'https://koudashijie.com' : 'https://codecombat.163.com'
45 if (redirectURL) {
46 url += redirectURL
47 }
48 return window.location.href = url
49 }
50
51 setRedirect (redirect) { return storage.save('redirect', redirect) }
52 getRedirect () { return storage.load('redirect') }

Callers 2

onClickOneMethod · 0.95
onClickTwoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected