Commit a1ffc673b95f4d0e2316d461f1364fa1ee08e9d2
Exists in
master
and in
4 other branches
Merge pull request #2096 from panxiaoming/master
can't open a chinese file name doc
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/assets/javascripts/tree.js.coffee
... | ... | @@ -28,7 +28,7 @@ $ -> |
28 | 28 | return false |
29 | 29 | |
30 | 30 | $('#tree-slider .tree-item-file-name a, .breadcrumb li > a').live 'click', (e) -> |
31 | - History.pushState(null, null, $(@).attr('href')) | |
31 | + History.pushState(null, null, decodeURIComponent($(@).attr('href'))) | |
32 | 32 | return false |
33 | 33 | |
34 | 34 | History.Adapter.bind window, 'statechange', -> | ... | ... |