Commit 142a51c7 authored by Bryan Tong's avatar Bryan Tong

Merge branch 'fixMissingReference' into 'master'

Fix missing reference to Main

See merge request !40
parents 3660cb01 c73cde53
......@@ -88,7 +88,7 @@ class Main {
).split('.')
const docInfo = info['v' + majorVersion]
let doc = null
const link = Route.titleCaseToUri(req.params.link)
const link = Main.titleCaseToUri(req.params.link)
if (docInfo.docMap[link]) doc = docInfo.docMap[link]
if (Validate.isType('string', doc)) doc = { url: doc }
if (!doc) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment