Path encoding for blobs. Fix for #97
This commit is contained in:
parent
c82c94a199
commit
c385b1b63c
|
@ -213,7 +213,7 @@
|
|||
item.a_attr = { href: '#' }
|
||||
}
|
||||
else if (type === 'blob') {
|
||||
item.a_attr = { href: '/' + repo.username + '/' + repo.reponame + '/' + type + '/' + repo.branch + '/' + path }
|
||||
item.a_attr = { href: '/' + repo.username + '/' + repo.reponame + '/' + type + '/' + repo.branch + '/' + encodeURIComponent(path) }
|
||||
}
|
||||
else if (type === 'commit') {
|
||||
var moduleUrl = submodules[item.path]
|
||||
|
@ -435,4 +435,4 @@
|
|||
return localStorage.setItem(key, JSON.stringify(val))
|
||||
}
|
||||
}
|
||||
})()
|
||||
})()
|
||||
|
|
Loading…
Reference in New Issue