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

Function getMapUrl

app/core/store/modules/layoutChrome.js:38–55  ·  view source on GitHub ↗
(state, _getters, _rootState, rootGetters)

Source from the content-addressed store, hash-verified

36 },
37
38 getMapUrl (state, _getters, _rootState, rootGetters) {
39 const courseInstanceId = state.currentCourseInstanceId
40 const courseId = state.currentCourseId
41 const campaign = rootGetters['campaigns/getCampaignData']({ courseInstanceId, courseId })
42 if (!campaign) {
43 return undefined
44 }
45 let url = urls.courseWorldMap({
46 courseId,
47 courseInstanceId,
48 campaignId: campaign.slug,
49 codeLanguage: utils.getQueryVariable('codeLanguage')
50 })
51 if (utils.showOzaria() && !url.includes('ozaria')) {
52 url = url.replace(/^\/play\//, '/play/ozaria/')
53 }
54 return url
55 }
56 },
57
58 actions: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected