Merge pull request #100 from bayandin/gh-97
Path encoding for blobs. Fix for #97
This commit is contained in:
commit
411534e1c4
|
@ -213,7 +213,7 @@
|
||||||
item.a_attr = { href: '#' }
|
item.a_attr = { href: '#' }
|
||||||
}
|
}
|
||||||
else if (type === 'blob') {
|
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') {
|
else if (type === 'commit') {
|
||||||
var moduleUrl = submodules[item.path]
|
var moduleUrl = submodules[item.path]
|
||||||
|
@ -435,4 +435,4 @@
|
||||||
return localStorage.setItem(key, JSON.stringify(val))
|
return localStorage.setItem(key, JSON.stringify(val))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
|
|
Loading…
Reference in New Issue