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

Function getProjectViewUrl

app/views/courses/ProjectGalleryView.js:86–88  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

84 },
85 methods: {
86 getProjectViewUrl (session) {
87 return `/play/${(this.level != null ? this.level.type : undefined)}-level/${(this.level != null ? this.level.slug : undefined)}/${session._id}`
88 },
89 getProjectEditUrl (session) {
90 return `/play/level/${(this.level != null ? this.level.slug : undefined)}?course=${(this.course != null ? this.course._id : undefined)}&course-instance=${(this.courseInstance != null ? this.courseInstance._id : undefined)}`
91 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected